3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $f = 0.0 * -1; var_dump(INF/$f); var_dump(INF/0.0);
based on HuQaf
Output for 7.0.0 - 7.2.0
Warning: Division by zero in /in/CqNMS on line 5 float(-INF) Warning: Division by zero in /in/CqNMS on line 6 float(INF)
Output for 5.3.20 - 5.6.28
Warning: Division by zero in /in/CqNMS on line 5 bool(false) Warning: Division by zero in /in/CqNMS on line 6 bool(false)