3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Source: https://bugs.php.net/bug.php?id=65967 $objstore = new SplObjectStorage(); $objstore[new StdClass] = 'a'; 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(1) { [0]=> array(2) { ["obj"]=> object(stdClass)#2 (0) { } ["inf"]=> string(1) "a" } } } O:16:"SplObjectStorage":2:{i:0;a:2:{i:0;O:8:"stdClass":0:{}i:1;s:1:"a";}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:
39.16 ms | 401 KiB | 8 Q