Deprecated: Return type of MyIter::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/a7NtE on line 35
Deprecated: Return type of MyIter::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/a7NtE on line 29
Deprecated: Return type of MyIter::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/a7NtE on line 13
Deprecated: Return type of MyIter::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/a7NtE on line 23
Deprecated: Return type of MyIter::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/a7NtE on line 18
MyIter::valid
MyIter::current
var = A
current =
Deprecated: current(): Calling current() on an object is deprecated in /in/a7NtE on line 45
Array
(
[0] => A
[1] => B
[2] => C
[3] => D
)
MyIter::next
MyIter::valid
MyIter::current
var = B
current =
Deprecated: current(): Calling current() on an object is deprecated in /in/a7NtE on line 45
Array
(
[0] => A
[1] => B
[2] => C
[3] => D
)
MyIter::next
MyIter::valid
MyIter::current
var = C
current =
Deprecated: current(): Calling current() on an object is deprecated in /in/a7NtE on line 45
Array
(
[0] => A
[1] => B
[2] => C
[3] => D
)
MyIter::next
MyIter::valid
MyIter::current
var = D
current =
Deprecated: current(): Calling current() on an object is deprecated in /in/a7NtE on line 45
Array
(
[0] => A
[1] => B
[2] => C
[3] => D
)
MyIter::next
MyIter::valid
MyIter::valid
MyIter::current
var = A
current = Array
(
[0] => A
[1] => B
[2] => C
[3] => D
)
MyIter::next
MyIter::valid
MyIter::current
var = B
current = Array
(
[0] => A
[1] => B
[2] => C
[3] => D
)
MyIter::next
MyIter::valid
MyIter::current
var = C
current = Array
(
[0] => A
[1] => B
[2] => C
[3] => D
)
MyIter::next
MyIter::valid
MyIter::current
var = D
current = Array
(
[0] => A
[1] => B
[2] => C
[3] => D
)
MyIter::next
MyIter::valid
Output for 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_ARRAY, expecting '&' or T_VARIABLE in /in/a7NtE on line 8
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting '{' in /in/a7NtE on line 3
Process exited with code 255.