In Javascript
p = 105874240;
105874240
p << 5;
-906991616
But in PHP
php > echo $p = 105874240;
105874240
php > echo $p << 5;
3387975680
I search some introduce about the different, because Javascript use signed int32. But I can't find the right solution for it, all not work for me.
Could you please tell me what's going on, and how can I get the same result of Javascript in PHP. Thank you.