In generator func foo
string(6) "world!"
Fatal error: Uncaught Exception: Cannot rewind a generator that was already run in /in/oeYPn:17
Stack trace:
#0 {main}
thrown in /in/oeYPn on line 17
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.28
In generator func foo
string(6) "world!"
Fatal error: Uncaught exception 'Exception' with message 'Cannot rewind a generator that was already run' in /in/oeYPn:17
Stack trace:
#0 /in/oeYPn(17): unknown()
#1 {main}
thrown in /in/oeYPn on line 17
Process exited with code 255.
Output for 5.4.0 - 5.4.45
Parse error: syntax error, unexpected '$i' (T_VARIABLE) in /in/oeYPn on line 10
Process exited with code 255.