1New expression dereferencing
2-----
3<?php
4
5(new A)->b;
6(new A)->b();
7(new A)['b'];
8(new A)['b']['c'];
9-----
10array(
11    0: Stmt_Expression(
12        expr: Expr_PropertyFetch(
13            var: Expr_New(
14                class: Name(
15                    name: A
16                )
17                args: array(
18                )
19            )
20            name: Identifier(
21                name: b
22            )
23        )
24    )
25    1: Stmt_Expression(
26        expr: Expr_MethodCall(
27            var: Expr_New(
28                class: Name(
29                    name: A
30                )
31                args: array(
32                )
33            )
34            name: Identifier(
35                name: b
36            )
37            args: array(
38            )
39        )
40    )
41    2: Stmt_Expression(
42        expr: Expr_ArrayDimFetch(
43            var: Expr_New(
44                class: Name(
45                    name: A
46                )
47                args: array(
48                )
49            )
50            dim: Scalar_String(
51                value: b
52            )
53        )
54    )
55    3: Stmt_Expression(
56        expr: Expr_ArrayDimFetch(
57            var: Expr_ArrayDimFetch(
58                var: Expr_New(
59                    class: Name(
60                        name: A
61                    )
62                    args: array(
63                    )
64                )
65                dim: Scalar_String(
66                    value: b
67                )
68            )
69            dim: Scalar_String(
70                value: c
71            )
72        )
73    )
74)
75