Deprecated: Return type of BadIterator::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/dUgEg on line 8
Deprecated: Return type of BadIterator::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/dUgEg on line 18
Deprecated: Return type of BadIterator::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/dUgEg on line 13
Deprecated: Return type of BadIterator::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/dUgEg on line 28
Deprecated: Return type of BadIterator::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/dUgEg on line 23
Direct iteration:
1
2
3
4
5
Caching iteration:
2
3
4
5
Warning: Undefined array key 5 in /in/dUgEg on line 35
Output for 8.0.0 - 8.0.30
Direct iteration:
1
2
3
4
5
Caching iteration:
2
3
4
5
Warning: Undefined array key 5 in /in/dUgEg on line 35