3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new SplFixedArray(2); $x[1] = "a"; $x->{"1"} = "b"; $x->{"123"} = "c"; var_dump($x); var_dump(serialize($x)); var_dump(unserialize(serialize($x)));
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Creation of dynamic property SplFixedArray::$1 is deprecated in /in/uZH8a on line 6 Deprecated: Creation of dynamic property SplFixedArray::$123 is deprecated in /in/uZH8a on line 7 object(SplFixedArray)#1 (4) { [0]=> NULL [1]=> string(1) "a" ["1"]=> string(1) "b" ["123"]=> string(1) "c" } string(77) "O:13:"SplFixedArray":4:{i:0;N;i:1;s:1:"a";s:1:"1";s:1:"b";s:3:"123";s:1:"c";}" object(SplFixedArray)#2 (3) { [0]=> NULL [1]=> string(1) "b" [2]=> string(1) "c" }

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:
72.8 ms | 407 KiB | 5 Q