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/p7TqM 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/p7TqM 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/p7TqM 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/p7TqM 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/p7TqM on line 9
brap brap
Fatal error: Uncaught Error: Undefined constant "foo" in /in/p7TqM:35
Stack trace:
#0 {main}
thrown in /in/p7TqM on line 35
Process exited with code 255.
Output for 8.0.0 - 8.0.30
brap brap
Fatal error: Uncaught Error: Undefined constant "foo" in /in/p7TqM:35
Stack trace:
#0 {main}
thrown in /in/p7TqM on line 35
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/p7TqM on line 35
bool(false)