1--TEST--
2"Reference Unpacking - Foreach" list()
3--FILE--
4<?php
5$coords = array(array(1, 2), array(3, 4));
6foreach ($coords as [&$x, $y]) {
7    $x++;
8    $y++;
9}
10var_dump($coords);
11?>
12--EXPECT--
13array(2) {
14  [0]=>
15  array(2) {
16    [0]=>
17    int(2)
18    [1]=>
19    int(2)
20  }
21  [1]=>
22  array(2) {
23    [0]=>
24    &int(4)
25    [1]=>
26    int(4)
27  }
28}
29