Deprecated: Return type of & myobject::offsetGet($key) should either be compatible with ArrayObject::offsetGet(mixed $key): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/e5CjJ on line 3
object(myobject)#1 (1) {
["storage":"ArrayObject":private]=>
array(2) {
[0]=>
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
}
[1]=>
int(1)
}
}
Warning: Undefined variable $var in /in/e5CjJ on line 4
Notice: Indirect modification of overloaded element of myobject has no effect in /in/e5CjJ on line 12
Fatal error: Uncaught TypeError: Unsupported operand types: null & array in /in/e5CjJ:4
Stack trace:
#0 /in/e5CjJ(12): myobject->offsetGet(0)
#1 {main}
thrown in /in/e5CjJ on line 4
Process exited with code 255.
Output for 8.0.0 - 8.0.30
object(myobject)#1 (1) {
["storage":"ArrayObject":private]=>
array(2) {
[0]=>
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
}
[1]=>
int(1)
}
}
Warning: Undefined variable $var in /in/e5CjJ on line 4
Notice: Indirect modification of overloaded element of myobject has no effect in /in/e5CjJ on line 12
Fatal error: Uncaught TypeError: Unsupported operand types: null & array in /in/e5CjJ:4
Stack trace:
#0 /in/e5CjJ(12): myobject->offsetGet(0)
#1 {main}
thrown in /in/e5CjJ on line 4
Process exited with code 255.
Fatal error: Declaration of myobject::offsetGet() must be compatible with that of ArrayAccess::offsetGet() in /in/e5CjJ on line 8
Process exited with code 255.
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/e5CjJ on line 3
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/e5CjJ on line 3
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/e5CjJ on line 3
Process exited with code 255.