1--TEST--
2Temporary array expressions can be iterated by reference
3--FILE--
4<?php
5
6$a = 'a';
7$b = 'b';
8
9foreach ([&$a, &$b] as &$value) {
10 $value .= '-foo';
11}
12
13var_dump($a, $b);
14
15?>
16--EXPECT--
17string(5) "a-foo"
18string(5) "b-foo"
19