3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function __foo() { throw new Exception; } __foo();
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Exception in /in/M1FRB:4 Stack trace: #0 /in/M1FRB(7): __foo() #1 {main} thrown in /in/M1FRB on line 4
Process exited with code 255.
Output for 5.3.17 - 5.6.28
Fatal error: Uncaught exception 'Exception' in /in/M1FRB:4 Stack trace: #0 /in/M1FRB(7): __foo() #1 {main} thrown in /in/M1FRB on line 4
Process exited with code 255.