3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $bits = 32; $N = 0xffffffff; $result = -( pow(2, $bits) - $N ); echo $result;
Output for 4.3.0 - 7.1.0
-1