3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo extends Error {} class Bar implements Throwable {}
based on huBSL
Output for 7.0.0 - 7.2.0
Fatal error: Class Bar cannot implement interface Throwable, extend Exception or Error instead in /in/8hgAu on line 5
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Class 'Error' not found in /in/8hgAu on line 3
Process exited with code 255.