3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test1() { yield from ['a']; } function test2() { yield from test1(); } foreach(test2() as $test) { echo $test; }

preferences:
56.46 ms | 402 KiB | 5 Q