3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "Unsigned and Signed:\n"; $offset = abs(~0xffffffff) + 2 + 4294967295; printf("%u\n",PHP_INT_MAX); printf("%d\n",~$offset);
Output for 5.3.0 - 5.6.30, hhvm-3.10.1 - 3.17.3, 7.0.0 - 7.2.0
Unsigned and Signed: 9223372036854775807 -8589934594