3v4l.org

run code in 300+ PHP versions simultaneously
<?php function generator() { return; yield; } var_dump(iterator_to_array(generator()));

preferences:
25.55 ms | 405 KiB | 5 Q