3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { throw new \RuntimeException('Some Error'); } finally { $foo = new \Foo(); }
based on cZFD9
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught RuntimeException: Some Error in /in/RrblM:3 Stack trace: #0 {main} Next Error: Class 'Foo' not found in /in/RrblM:5 Stack trace: #0 {main} thrown in /in/RrblM on line 5
Process exited with code 255.
Output for 5.6.0 - 5.6.28
Fatal error: Class 'Foo' not found in /in/RrblM on line 5
Process exited with code 255.
Output for 5.5.0 - 5.5.37

Process exited with code 139.