3v4l.org

run code in 300+ PHP versions simultaneously
<?php $container = new \ArrayObject; $save = new \ArrayObject; for ($i = 0; $i < 10; $i++) { $container[$i] = new \stdClass; $save[$i] = new \stdClass; $container->offsetUnset($i); } var_dump($container); var_dump($save);
Output for git.master, git.master_jit, rfc.property-hooks
object(ArrayObject)#1 (1) { ["storage":"ArrayObject":private]=> array(0) { } } object(ArrayObject)#2 (1) { ["storage":"ArrayObject":private]=> array(10) { [0]=> object(stdClass)#4 (0) { } [1]=> object(stdClass)#5 (0) { } [2]=> object(stdClass)#6 (0) { } [3]=> object(stdClass)#7 (0) { } [4]=> object(stdClass)#8 (0) { } [5]=> object(stdClass)#9 (0) { } [6]=> object(stdClass)#10 (0) { } [7]=> object(stdClass)#11 (0) { } [8]=> object(stdClass)#12 (0) { } [9]=> object(stdClass)#13 (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:
47.33 ms | 402 KiB | 8 Q