3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { static $f = 0; yield ++$f; yield from goo(); } function goo() { static $g = 'a'; yield ++$g; yield from foo(); } foreach (foo() as $foo) { print $foo.PHP_EOL; } ?>

Abusive script

This script was stopped while abusing our resources

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
150.43 ms | 1661 KiB | 10 Q