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/9UVrl on line 19
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/9UVrl 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/9UVrl 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/9UVrl on line 41
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/9UVrl on line 13
Deprecated: Return type of MyCollection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/9UVrl on line 64
Fatal error: Uncaught Exception: Objects returned by MyCollection::getIterator() must be traversable or implement interface Iterator in /in/9UVrl:81
Stack trace:
#0 {main}
thrown in /in/9UVrl on line 81
Process exited with code 255.
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.
Output for 8.3.28
/bin/php-8.3.28: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.3.28)
/bin/php-8.3.28: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.3.28)
/bin/php-8.3.28: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.3.28)
/bin/php-8.3.28: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.3.28)
Process exited with code 1.
Fatal error: Uncaught Exception: Objects returned by MyCollection::getIterator() must be traversable or implement interface Iterator in /in/9UVrl:81
Stack trace:
#0 {main}
thrown in /in/9UVrl on line 81
Process exited with code 255.
Fatal error: Uncaught exception 'Exception' with message 'Objects returned by MyCollection::getIterator() must be traversable or implement interface Iterator' in /in/9UVrl:81
Stack trace:
#0 /in/9UVrl(81): unknown()
#1 {main}
thrown in /in/9UVrl on line 81
Process exited with code 255.
Output for 5.0.0 - 5.0.3
Warning: Objects returned by MyCollection::getIterator() must be traversable or implement interface Iterator in /in/9UVrl on line 81
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting '{' in /in/9UVrl on line 2
Process exited with code 255.