Run ❯
Get your
own PHP
server
Result Size:
625 x 565
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <?php function countTo4() { yield from [1, 2, 3]; yield 4; } foreach(countTo4() as $number) { echo $number; echo "<br>"; } ?> </body> </html>
1
2
3
4