3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
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 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
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.

preferences:
178.69 ms | 401 KiB | 240 Q