1--TEST--
2Testing array dereferencing from instance with ArrayObject
3--FILE--
4<?php
5
6class foo extends ArrayObject {
7    public function __construct($arr) {
8        parent::__construct($arr);
9    }
10}
11
12var_dump( (new foo( array(1, array(4, 5), 3) ))[1][0] ); // int(4)
13
14?>
15--EXPECT--
16int(4)
17