3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { try { try { try { try{ try{ throw new Exception('hi', 1, $e); } Catch (Exception $e) { throw new Exception('hi', 2, $e); } } Catch (Exception $e) { throw new Exception('hi', 3, $e); } } Catch (Exception $e) { throw new Exception('hi', 4, $e); } } Catch (Exception $e) { throw new Exception('hi', 5, $e); } } Catch (Exception $e) { throw new Exception('hi', 6, $e); } } catch (Exception $e) { echo $e->getMessage(), "\n"; while ($e = $e->getPreviousException()) { echo $e->getMessage(), "\n"; } }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $e in /in/IheI6 on line 9 hi Fatal error: Uncaught Error: Call to undefined method Exception::getPreviousException() in /in/IheI6:28 Stack trace: #0 {main} thrown in /in/IheI6 on line 28
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:
46.81 ms | 401 KiB | 8 Q