3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { $foo = 123 / 0; var_dump($foo); } catch (Exception $e) { var_dump($e); }
based on JMHL0
Output for 7.0.0 - 7.2.0
Warning: Division by zero in /in/OMl8X on line 4 float(INF)
Output for 5.3.19 - 5.6.28
Warning: Division by zero in /in/OMl8X on line 4 bool(false)