3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(-(0.)); var_dump(-1/INF);
Output for 7.0.2 - 7.2.0
float(-0) float(-0)
Output for 5.2.3 - 7.0.1
float(0) float(-0)
Output for 4.3.6 - 5.2.2
float(0) float(0)
Output for 4.3.0 - 4.3.5
float(0) Notice: Use of undefined constant INF - assumed 'INF' in /in/ZDCLT on line 4 Warning: Division by zero in /in/ZDCLT on line 4 int(0)