3v4l.org

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