3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function test($arg) { echo 1; echo $arg; yield($arg); echo 2; echo $arg; } test('A'); test('B');
based on 1ZUnc
Output for 5.5.24 - 7.1.0
Output for 5.0.0 - 5.4.45
1A Fatal error: Call to undefined function yield() in /in/c9LXR on line 7
Process exited with code 255.
Output for 4.4.5 - 4.4.9
1A Fatal error: Call to undefined function: yield() in /in/c9LXR on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.4
1A Fatal error: Call to undefined function: yield() in /in/c9LXR on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
1A Fatal error: Call to undefined function: yield() in /in/c9LXR on line 7