I use same code in different machine.
Ubuntu 64
$test = 51339780210;
echo (int) $test; die; //result : 51339780210
Centos 32
$test = 51339780210;
echo (int) $test; die; //result : -199827342
Why these result is different?
How many bits are both systems? This can be the difference between 32-bit system and 64-bit system.