3v4l.org

run code in 300+ PHP versions simultaneously
<?php gc_enable(); $objstore = new SplObjectStorage(); $objstore->attach(new StdClass); $objstore->attach(new StdClass); $objstore->attach(new StdClass); gc_collect_cycles(); var_dump($objstore); print serialize($objstore);
Output for git.master, git.master_jit, rfc.property-hooks
object(SplObjectStorage)#1 (1) { ["storage":"SplObjectStorage":private]=> array(3) { [0]=> array(2) { ["obj"]=> object(stdClass)#2 (0) { } ["inf"]=> NULL } [1]=> array(2) { ["obj"]=> object(stdClass)#3 (0) { } ["inf"]=> NULL } [2]=> array(2) { ["obj"]=> object(stdClass)#4 (0) { } ["inf"]=> NULL } } } O:16:"SplObjectStorage":2:{i:0;a:6:{i:0;O:8:"stdClass":0:{}i:1;N;i:2;O:8:"stdClass":0:{}i:3;N;i:4;O:8:"stdClass":0:{}i:5;N;}i:1;a: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:
59.37 ms | 402 KiB | 8 Q