3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function my_error_handler($errno, $message) { throw new ErrorException($message); } try { echo 1/0; } catch(ErrorException $e){ echo "got $e"; }
Output for hhvm-3.18.5 - 3.21.3, 7.0.30 - 7.3.0alpha1
Warning: Division by zero in /in/D2RE3 on line 7 INF
Output for hhvm-3.22.0
Warning: Division by zero in /in/D2RE3 on line -1 INF
Output for 5.6.30
Warning: Division by zero in /in/D2RE3 on line 7