3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iterator = new ArrayIterator([1, 2, 3]); $iterator = new LimitIterator($iterator, 0, INF); $iterator = new LimitIterator($iterator, 0, 2); foreach($iterator as $v) printf("%s\n", $v);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: LimitIterator::__construct(): Argument #3 ($limit) must be of type int, float given in /in/UIYMq:4 Stack trace: #0 /in/UIYMq(4): LimitIterator->__construct(Object(ArrayIterator), 0, INF) #1 {main} thrown in /in/UIYMq on line 4
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:
59.75 ms | 401 KiB | 8 Q