Deprecated: Return type of foo::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/jstr5 on line 13
Deprecated: Return type of foo::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/jstr5 on line 21
Deprecated: Return type of foo::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/jstr5 on line 17
Deprecated: Return type of foo::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/jstr5 on line 25
Deprecated: Return type of foo::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/jstr5 on line 9
brap brap
Deprecated: Creation of dynamic property foo::$position is deprecated in /in/jstr5 on line 6
Fatal error: Uncaught Error: Undefined constant "foo" in /in/jstr5:36
Stack trace:
#0 {main}
thrown in /in/jstr5 on line 36
Process exited with code 255.
Output for 8.1.0 - 8.1.28
Deprecated: Return type of foo::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/jstr5 on line 13
Deprecated: Return type of foo::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/jstr5 on line 21
Deprecated: Return type of foo::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/jstr5 on line 17
Deprecated: Return type of foo::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/jstr5 on line 25
Deprecated: Return type of foo::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/jstr5 on line 9
brap brap
Fatal error: Uncaught Error: Undefined constant "foo" in /in/jstr5:36
Stack trace:
#0 {main}
thrown in /in/jstr5 on line 36
Process exited with code 255.
Output for 8.0.0 - 8.0.30
brap brap
Fatal error: Uncaught Error: Undefined constant "foo" in /in/jstr5:36
Stack trace:
#0 {main}
thrown in /in/jstr5 on line 36
Process exited with code 255.
brap brap
Warning: Use of undefined constant foo - assumed 'foo' (this will throw an Error in a future version of PHP) in /in/jstr5 on line 36
bool(false)