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/n578K 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)
}
}
Notice: Only variables should be assigned by reference in /in/n578K on line 4
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(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)
}
}
Fatal error: Declaration of myobject::offsetGet() must be compatible with that of ArrayAccess::offsetGet() in /in/n578K on line 8
Process exited with code 255.
Output for 5.0.5
object(myobject)#1 (2) {
[0]=>
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
}
[1]=>
int(1)
}
Strict Standards: Only variables should be assigned by reference in /in/n578K on line 4
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
}
object(myobject)#1 (2) {
[0]=>
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
}
[1]=>
int(1)
}
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/n578K 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/n578K 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/n578K on line 3
Process exited with code 255.