3v4l.org

run code in 300+ PHP versions simultaneously
<?php class 😕 implements IteratorAggregate { function getIterator() { return new 😕; } } foreach(new 😕 as $😬);
Output for git.master, git.master_jit
Deprecated: Return type of 😕::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/VeYX4 on line 4
Process exited with code 139.
Output for rfc.property-hooks
Deprecated: Return type of 😕::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/VeYX4 on line 4 Fatal error: Uncaught Error: Maximum call stack size of 8306688 bytes reached. Infinite recursion? in /in/VeYX4:4 Stack trace: #0 /in/VeYX4(7): 😕->getIterator() #1 {main} thrown in /in/VeYX4 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:
38.42 ms | 401 KiB | 8 Q