3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function g1() { echo "g1 yield 1\n"; yield 1; echo "g1 yield 2\n"; yield 2; echo "g1 end\n"; } function g2($g1) { echo "g2 yield from g1\n"; yield from $g1; echo "g2 yield 3\n"; yield 3; echo "g2 end\n"; } echo "get g1\n"; $g1 = g1(); echo "get g2\n"; $g2 = g2($g1); echo "g2 valid\n"; while ($g2->valid()) { echo "g2 current\n"; var_dump($g2->current()); echo "g1 next\n"; $g1->next(); } echo "end\n";
Output for 7.0.1 - 7.2.0
get g1 get g2 g2 valid g2 yield from g1 g1 yield 1 g2 current int(1) g1 next g1 yield 2 g2 current int(2) g1 next g1 end g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2) g1 next g2 current int(2)
Process exited with code 137.
Output for 7.0.0
get g1 get g2 g2 valid g2 yield from g1 g1 yield 1 g2 current int(1) g1 next g1 yield 2 g2 current int(2) g1 next g1 end end
Output for 5.5.0 - 5.6.28
Parse error: syntax error, unexpected '$g1' (T_VARIABLE) in /in/ctuUn on line 13
Process exited with code 255.