3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $n = 0 - 0.00000000000000000000000000000000; var_dump($n); // float(-1.0E-33) var_dump(round($n)); // float(-0) var_dump(abs($n)); // 1.0E-33 var_dump(abs(round($n))); // 0 var_dump(round($n) == 0); var_dump(round($n) === 0);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
float(0) float(0) float(0) float(0) bool(true) bool(false)