PHP Generators Overview about generators in PHP. To test: See 'tests' directory Run with PHP installed on the host: php tests/script-name.php Or run with Docker: docker run -it --rm -v $PWD:/usr/src/app -w /usr/src/app php:8.1-cli php tests/script-name.php