3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface Foo extends \Throwable {} class Bar implements Foo { } throw new Bar();
based on jYfn7
Output for 7.0.0 - 7.2.0
Fatal error: Class Bar cannot implement interface Throwable, extend Exception or Error instead in /in/MYC8Q on line 5
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Fatal error: Interface 'Throwable' not found in /in/MYC8Q on line 3
Process exited with code 255.