3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public $publ = 42; private $priv = 41; protected $prot = 40; } var_dump(unserialize(serialize(new test()))); class test2 extends ArrayObject { public $publ = 42; private $priv = 41; protected $prot = 40; } var_dump(unserialize(serialize(new test2())));
Output for git.master, git.master_jit, rfc.property-hooks
object(test)#1 (3) { ["publ"]=> int(42) ["priv":"test":private]=> int(41) ["prot":protected]=> int(40) } object(test2)#1 (4) { ["publ"]=> int(42) ["priv":"test2":private]=> int(41) ["prot":protected]=> int(40) ["storage":"ArrayObject":private]=> array(0) { } }

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