Deprecated: Return type of A::serialize() should either be compatible with ArrayObject::serialize(): string, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/v353G on line 11
Serialized string: x:i:0;a:3:{i:0;s:5:"item1";i:1;s:5:"item2";i:2;s:5:"item3";};m:a:0:{}
object(A)#2 (2) {
["foo":protected]=>
string(3) "bar"
["storage":"ArrayObject":private]=>
array(3) {
[0]=>
string(5) "item1"
[1]=>
string(5) "item2"
[2]=>
string(5) "item3"
}
}