3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fixed = SplFixedArray::fromArray(range(1, 3)); $fixed->undefined = 'undefined'; $serialized = serialize($fixed); $unserialized = unserialize($serialized); var_dump($unserialized); var_export($unserialized);
Output for git.master, git.master_jit
Deprecated: Creation of dynamic property SplFixedArray::$undefined is deprecated in /in/kGNuG on line 4 Deprecated: Creation of dynamic property SplFixedArray::$undefined is deprecated in /in/kGNuG on line 7 object(SplFixedArray)#2 (4) { ["undefined"]=> string(9) "undefined" [0]=> int(1) [1]=> int(2) [2]=> int(3) } \SplFixedArray::__set_state(array( 'undefined' => 'undefined', 0 => 1, 1 => 2, 2 => 3, ))
Output for rfc.property-hooks
Deprecated: Creation of dynamic property SplFixedArray::$undefined is deprecated in /in/kGNuG on line 4 Deprecated: Creation of dynamic property SplFixedArray::$undefined is deprecated in /in/kGNuG on line 7 object(SplFixedArray)#2 (4) { [0]=> int(1) [1]=> int(2) [2]=> int(3) ["undefined"]=> string(9) "undefined" } \SplFixedArray::__set_state(array( 0 => 1, 1 => 2, 2 => 3, 'undefined' => 'undefined', ))

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:
86.31 ms | 401 KiB | 8 Q