3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php <?php function test(array $array) { foreach ($array as $value) { yield $value; } } $array = range(0, 10000); $values = array(); foreach (test($array) as $value) { $values[] = $value; }
Output for 5.3.0 - 5.5.3
Parse error: syntax error, unexpected '<' in /in/drgfg on line 3
Process exited with code 255.