1--TEST--
2Dereferencing expression parentheses
3--INI--
4zend.enable_gc=1
5--FILE--
6<?php
7
8$array = [&$array, 1];
9var_dump(($array)[1]);
10var_dump((($array[0][0])[0])[1]);
11
12var_dump(((object) ['a' => 0, 'b' => 1])->b);
13
14$obj = (object) ['a' => 0, 'b' => ['var_dump', 1]];
15(clone $obj)->b[0](1);
16
17?>
18--EXPECT--
19int(1)
20int(1)
21int(1)
22int(1)
23