3v4l.org

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