3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function ineviteble() { yield or die; } foreach (ineviteble() as $end) { }
based on 6X6QS
Output for 5.5.0 - 7.2.0
Output for 4.3.0 - 4.3.10, 4.4.0 - 5.4.45
Notice: Use of undefined constant yield - assumed 'yield' in /in/J8pap on line 4 Warning: Invalid argument supplied for foreach() in /in/J8pap on line 7
Output for 4.3.11
Notice: Use of undefined constant yield - assumed 'yield' in /in/J8pap on line 4