1--TEST--
2Evaluation order during assignments.
3--FILE--
4<?php
5
6function i1() {
7        echo "i1\n";
8        return 1;
9}
10
11function i2() {
12        echo "i2\n";
13        return 1;
14}
15
16function i3() {
17        echo "i3\n";
18        return 3;
19}
20
21$a = array(10, 11, 12, 13);
22list($a[i1()+i2()], , list($a[i3()], $a[])) = array(0, 1, array(30, 40), 3);
23
24var_dump($a);
25
26?>
27--EXPECT--
28i1
29i2
30i3
31array(5) {
32  [0]=>
33  int(10)
34  [1]=>
35  int(11)
36  [2]=>
37  int(0)
38  [3]=>
39  int(30)
40  [4]=>
41  int(40)
42}
43