3v4l.org

run code in 300+ PHP versions simultaneously
<?php $it = new ArrayIterator(array('test' => 'test')); $limitit = new LimitIterator($it, 0, 10); var_dump($limitit); var_dump($limitit->getInnerIterator()); $limititSer = serialize($limitit); var_dump($limititSer); $limitit = unserialize($limititSer); var_dump($limitit); var_dump($limitit->getInnerIterator());
Output for git.master, git.master_jit, rfc.property-hooks
object(LimitIterator)#2 (0) { } object(ArrayIterator)#1 (1) { ["storage":"ArrayIterator":private]=> array(1) { ["test"]=> string(4) "test" } } string(25) "O:13:"LimitIterator":0:{}" object(LimitIterator)#4 (0) { } Fatal error: Uncaught Error: The object is in an invalid state as the parent constructor was not called in /in/9aOX8:14 Stack trace: #0 /in/9aOX8(14): IteratorIterator->getInnerIterator() #1 {main} thrown in /in/9aOX8 on line 14
Process exited with code 255.

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