3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { throw new \Exception('Server made a boo boo'); } catch(\Exception $e) { // do smth echo $e->getMessage()."\n"; throw $e; } finally { $db = new DbTable(); echo "Done\n"; try { throw new \Exception('Database made a boo boo'); } catch (\Exception $e) { // ok, reconnect } }
Output for 7.0.0 - 7.2.0
Server made a boo boo Fatal error: Uncaught Exception: Server made a boo boo in /in/Laq33:4 Stack trace: #0 {main} Next Error: Class 'DbTable' not found in /in/Laq33:12 Stack trace: #0 {main} thrown in /in/Laq33 on line 12
Process exited with code 255.
Output for 5.6.0 - 5.6.28
Server made a boo boo Fatal error: Class 'DbTable' not found in /in/Laq33 on line 12
Process exited with code 255.
Output for 5.5.0 - 5.5.38
Server made a boo boo
Process exited with code 139.