3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $grade = 10; try { $grade = $grade / 0; } catch (Exception $e) { $grade = 0; } var_dump($grade);
based on a11CG
Output for 7.0.0 - 7.2.0
Warning: Division by zero in /in/BLFvF on line 5 float(INF)
Output for 5.3.20 - 5.6.28
Warning: Division by zero in /in/BLFvF on line 5 bool(false)