3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function gen() { for ($i = 0; $i<4; $i++) { yield $i; } return; } while ($a = gen()) { echo 1; }
based on ejkj2