3v4l.org

run code in 300+ PHP versions simultaneously
<?php $e = new Exception("lol"); try{ $c = clone($e); }catch(\Throwable $e){ var_dump($e); echo "caught!"; }
Output for git.master_jit, rfc.property-hooks, git.master
object(Error)#2 (7) { ["message":protected]=> string(56) "Trying to clone an uncloneable object of class Exception" ["string":"Error":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/blOeC" ["line":protected]=> int(5) ["trace":"Error":private]=> array(0) { } ["previous":"Error":private]=> NULL } caught!

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.1 ms | 2825 KiB | 4 Q