3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { throw new DivisionByZeroError(); } catch (Throwable $e) { echo 'Caught ' . get_class($e); }
based on DsWNM
Output for 7.0.0 - 7.2.6
Caught DivisionByZeroError
Output for 5.6.0 - 5.6.27
Fatal error: Class 'DivisionByZeroError' not found in /in/l5ab3 on line 4
Process exited with code 255.