3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(-0.0); var_dump(-1.0*0.0); var_dump(-1.0*0.0+0.0); var_dump(-1.0*0.0 === 1.0*0.0);
based on u1upC
Output for 7.0.2 - 7.1.0
float(-0) float(-0) float(0) bool(true)
Output for 5.2.3 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.0.1
float(0) float(-0) float(0) bool(true)
Output for 4.3.0 - 5.2.2
float(0) float(0) float(0) bool(true)