3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test { public function action(){ throw new Exception(); } public function __destruct(){ echo "i'm dying"; } } $o = new Test(); $o->action();
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Exception in /in/9BYgs:5 Stack trace: #0 /in/9BYgs(12): Test->action() #1 {main} thrown in /in/9BYgs on line 5
Process exited with code 255.
Output for 5.3.19 - 5.6.21
Fatal error: Uncaught exception 'Exception' in /in/9BYgs:5 Stack trace: #0 /in/9BYgs(12): Test->action() #1 {main} thrown in /in/9BYgs on line 5
Process exited with code 255.