1--TEST--
2Check key execution order with new.
3--FILE--
4<?php
5$a[2][3] = 'stdClass';
6$a[$i=0][++$i] = new $a[++$i][++$i];
7print_r($a);
8
9$o = new stdClass;
10$o->a = new $a[$i=2][++$i];
11$o->a->b = new $a[$i=2][++$i];
12print_r($o);
13?>
14--EXPECTF--
15Array
16(
17    [2] => Array
18        (
19            [3] => stdClass
20        )
21
22    [0] => Array
23        (
24            [1] => stdClass Object
25                (
26                )
27
28        )
29
30)
31stdClass Object
32(
33    [a] => stdClass Object
34        (
35            [b] => stdClass Object
36                (
37                )
38
39        )
40
41)
42