3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { try { echo 'try'; throw new \Exception('1'); } catch (\Exception $e) { echo 'catch'; throw new \Exception('2'); } finally { echo 'finally'; throw new \Exception('3'); } } catch (\Exception $e) { var_dump($e); } echo 'lolo';
Output for git.master, git.master_jit, rfc.property-hooks
trycatchfinallyobject(Exception)#3 (7) { ["message":protected]=> string(1) "3" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(10) "/in/HlPPjo" ["line":protected]=> int(11) ["trace":"Exception":private]=> array(0) { } ["previous":"Exception":private]=> object(Exception)#2 (7) { ["message":protected]=> string(1) "2" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(10) "/in/HlPPjo" ["line":protected]=> int(8) ["trace":"Exception":private]=> array(0) { } ["previous":"Exception":private]=> NULL } } lolo

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:
51.35 ms | 402 KiB | 8 Q