3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $num = 0xffffffffffffffff; $num2 = 0xffffffffffffffe; echo $num, "\n",$num2; echo "\n",~$num,"\n"; printf("%u %d",$num, $num2);
Output for 5.3.0 - 7.1.0
1.844674407371E+19 1152921504606846974 -1 0 1152921504606846974
Output for 4.3.0 - 5.0.1, 5.0.3 - 5.2.17
1.844674407371E+19 1152921504606846974 9223372036854775807 0 1152921504606846974
Output for 5.0.2
1.844674407371E+19 1152921504606846974 9223372036854775807 4294967295 1152921504606846974