3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { var_dump(4/0); } catch(DivisionByZero $x) {var_dump('its error');}
Output for 7.0.0 - 7.2.0
Warning: Division by zero in /in/r76GW on line 3 float(INF)
Output for 5.3.21 - 5.6.28
Warning: Division by zero in /in/r76GW on line 3 bool(false)