3v4l.org

run code in 500+ PHP versions simultaneously
<?php class MyIterator extends ArrayIterator {} $a = new ArrayObject(); $a->setIteratorClass('MyIterator'); var_dump($a->getIteratorClass()); var_dump($a->serialize()); var_dump(unserialize(serialize($a))->getIteratorClass());
Output for rfc.property-hooks, git.master, git.master_jit
string(10) "MyIterator" string(21) "x:i:0;a:0:{};m:a:0:{}" string(10) "MyIterator"

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:
51 ms | 2690 KiB | 4 Q