3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ini_set("precision", 30); var_dump(round(-1)); var_dump(+round(-1)); var_dump(round(-1e-99)); var_dump(+round(-1e-99)); var_dump(-round(-1e-99));
based on VM7K1
Output for 7.0.2 - 7.2.0
float(-1) float(-1) float(-0) float(-0) float(0)
Output for 5.3.19 - 7.0.1
float(-1) float(-1) float(-0) float(0) float(0)