3v4l.org

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