Deprecated: Return type of Foo::getIterator() should either be compatible with ArrayObject::getIterator(): Iterator, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/R8PHr on line 14
Deprecated: ArrayIterator::__construct(): Using an object as a backing array for ArrayIterator is deprecated, as it allows violating class constraints and invariants in /in/R8PHr on line 24
2 => 3
5 => 10
7 => 11
FAIL
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.
Deprecated: Return type of Foo::getIterator() should either be compatible with ArrayObject::getIterator(): Iterator, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/R8PHr on line 14
2 => 3
5 => 10
7 => 11
FAIL
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/R8PHr on line 48
2 => 3
5 => 10
7 => 11
FAIL
Output for 5.0.5
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/R8PHr on line 48
ERROR: Wrong parameter count for ArrayObject::__construct()
Output for 5.0.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/R8PHr on line 48
ERROR: Wrong parameter count for __construct()
Output for 5.0.0 - 5.0.3
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/R8PHr on line 48
Warning: Wrong parameter count for __construct() in /in/R8PHr on line 8
Fatal error: Call to undefined method Foo::getIteratorClass() in /in/R8PHr on line 16
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/R8PHr on line 7
Process exited with code 255.
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/R8PHr on line 7
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/R8PHr on line 7
Process exited with code 255.