1Assigning new by reference (PHP 5 only)
2-----
3<?php
4$a =& new B;
5-----
6!!version=5.6
7array(
8    0: Stmt_Expression(
9        expr: Expr_AssignRef(
10            var: Expr_Variable(
11                name: a
12            )
13            expr: Expr_New(
14                class: Name(
15                    name: B
16                )
17                args: array(
18                )
19            )
20        )
21    )
22)
23-----
24<?php
25$a =& new B;
26-----
27!!version=7.0
28Cannot assign new by reference from 2:1 to 2:11
29array(
30    0: Stmt_Expression(
31        expr: Expr_AssignRef(
32            var: Expr_Variable(
33                name: a
34            )
35            expr: Expr_New(
36                class: Name(
37                    name: B
38                )
39                args: array(
40                )
41            )
42        )
43    )
44)
45