3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i = -0.1; var_dump(round($i)); var_dump(max(round($i), +0.1)); var_dump(max(-0, +0));
Output for 5.2.1 - 7.1.0
float(-0) float(0.1) int(0)
Output for 4.3.0 - 5.2.0
float(0) float(0.1) int(0)