3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo 1.0 / -0.0, "\n", 1.0 / (float)-0.0, "\n";
based on DQVdS
Output for 7.0.2 - 7.2.0
Warning: Division by zero in /in/pSmAb on line 2 -INF Warning: Division by zero in /in/pSmAb on line 2 -INF
Output for 7.0.0 - 7.0.1
Warning: Division by zero in /in/pSmAb on line 2 INF Warning: Division by zero in /in/pSmAb on line 2 INF
Output for 5.3.20 - 5.6.28
Warning: Division by zero in /in/pSmAb on line 2 Warning: Division by zero in /in/pSmAb on line 2