3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $bits32 = 32; $bits64 = 64; $N32 = 0xfffffffe; $N64 = 0xfffffffffffffffe; $result = -( pow(2, $bits32) - $N32 ); echo $result,"\n"; $result = -( pow(2, $bits64) - $N64 ); echo $result,"\n";
Output for 7.0.2 - 7.1.0
-2 -0
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.1
-2 0