3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { throw new Exception('Message 1'); } catch (Exception $e) { $e = new Exception('Message 2: ' . $e); } try { throw $e; } catch (Exception $e) { $e = new Exception('Message 3: ' . $e); } try { throw $e; } catch (Exception $e) { throw new Exception('Message 4: ' . $e); }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Exception: Message 4: Exception: Message 3: Exception: Message 2: Exception: Message 1 in /in/drQ6I:3 Stack trace: #0 {main} in /in/drQ6I:5 Stack trace: #0 {main} in /in/drQ6I:11 Stack trace: #0 {main} in /in/drQ6I:17 Stack trace: #0 {main} thrown in /in/drQ6I on line 17
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
35.43 ms | 402 KiB | 8 Q