Deprecated: Return type of FooBar::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/at8if on line 6
Deprecated: Return type of FooBar::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/at8if on line 8
Deprecated: Return type of FooBar::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/at8if on line 7
Deprecated: Return type of FooBar::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/at8if on line 10
Deprecated: Return type of FooBar::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/at8if on line 9
Starting bar()
Constructing new FooBar
Destructing FooBar
Caught Exception
NULL
NULL
Unsetting $x
Finishing bar()