Deprecated: Return type of MyIterator::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/Nv4Pn on line 21
Deprecated: Return type of MyIterator::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/Nv4Pn on line 35
Deprecated: Return type of MyIterator::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/Nv4Pn on line 28
Deprecated: Return type of MyIterator::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/Nv4Pn on line 42
Deprecated: Return type of MyIterator::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/Nv4Pn on line 15
1,2,3rewinding
Warning: Undefined variable $var in /in/Nv4Pn on line 44
Warning: Undefined variable $var in /in/Nv4Pn on line 46
valid:
Warning: Undefined variable $var in /in/Nv4Pn on line 47
Output for 8.0.0 - 8.0.30
1,2,3rewinding
Warning: Undefined variable $var in /in/Nv4Pn on line 44
Warning: Undefined variable $var in /in/Nv4Pn on line 46
valid:
Warning: Undefined variable $var in /in/Nv4Pn on line 47
1,2,3rewinding
Notice: Undefined variable: var in /in/Nv4Pn on line 44
Notice: Undefined variable: var in /in/Nv4Pn on line 46
valid:
Notice: Undefined variable: var in /in/Nv4Pn on line 47
Output for 7.3.32 - 7.3.33, 7.4.26
1,2,3rewinding
valid:
Output for 5.0.0 - 5.0.3
1,2,3rewinding
Notice: Undefined variable: var in /in/Nv4Pn on line 44
Notice: Undefined variable: var in /in/Nv4Pn on line 46
valid:
Notice: Undefined variable: var in /in/Nv4Pn on line 47
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting '{' in /in/Nv4Pn on line 2
Process exited with code 255.