3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(1/0); var_dump(-1/0); var_dump(0/0);
based on 7ae3G
Output for hhvm-3.15.4, 7.0.0 - 7.3.0rc3
Warning: Division by zero in /in/93kMq on line 2 float(INF) Warning: Division by zero in /in/93kMq on line 3 float(-INF) Warning: Division by zero in /in/93kMq on line 4 float(NAN)
Output for 5.6.0 - 5.6.30
Warning: Division by zero in /in/93kMq on line 2 bool(false) Warning: Division by zero in /in/93kMq on line 3 bool(false) Warning: Division by zero in /in/93kMq on line 4 bool(false)