3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s1 = new SplObjectStorage(); $s2 = new SplObjectStorage(); $o1 = new StdClass; $o2 = new StdClass; $o3 = new StdClass; $s1[$o1] = "data for object 1"; $s2[$o2] = "data for object 2"; gc_collect_cycles(); var_dump($s1); var_dump($s2);
Output for git.master, git.master_jit, rfc.property-hooks
object(SplObjectStorage)#1 (1) { ["storage":"SplObjectStorage":private]=> array(1) { [0]=> array(2) { ["obj"]=> object(stdClass)#3 (0) { } ["inf"]=> string(17) "data for object 1" } } } object(SplObjectStorage)#2 (1) { ["storage":"SplObjectStorage":private]=> array(1) { [0]=> array(2) { ["obj"]=> object(stdClass)#4 (0) { } ["inf"]=> string(17) "data for object 2" } } }

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