Deprecated: Return type of FooIterator::current() should either be compatible with ArrayIterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/2Koi2 on line 4
int(2)
Fatal error: Uncaught TypeError: rewind(): Argument #1 ($stream) must be of type resource, array given in /in/2Koi2:12
Stack trace:
#0 /in/2Koi2(12): rewind(Array)
#1 {main}
thrown in /in/2Koi2 on line 12
Process exited with code 255.
Output for 8.0.0 - 8.0.30
int(2)
Fatal error: Uncaught TypeError: rewind(): Argument #1 ($stream) must be of type resource, array given in /in/2Koi2:12
Stack trace:
#0 /in/2Koi2(12): rewind(Array)
#1 {main}
thrown in /in/2Koi2 on line 12
Process exited with code 255.