3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function a() { $x = yield; } var_dump(a());
Output for 5.5.24 - 7.2.0
object(Generator)#1 (0) { }
Output for 4.3.0 - 5.4.45
Notice: Use of undefined constant yield - assumed 'yield' in /in/9Q0Gu on line 5 NULL