In generator func foo
Hello world!string(12) "Hello world!"
Fatal error: Uncaught Exception: Cannot rewind a generator that was already run in /in/N0Ba0:17
Stack trace:
#0 {main}
thrown in /in/N0Ba0 on line 17
Process exited with code 255.
Output for 5.5.0 - 5.5.36, 5.6.0 - 5.6.28
In generator func foo
Hello world!string(12) "Hello world!"
Fatal error: Uncaught exception 'Exception' with message 'Cannot rewind a generator that was already run' in /in/N0Ba0:17
Stack trace:
#0 /in/N0Ba0(17): unknown()
#1 {main}
thrown in /in/N0Ba0 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/N0Ba0 on line 10
Process exited with code 255.