xref: /php-src/Zend/tests/foreach/foreach_006.phpt (revision 275f63e7)
1--TEST--
2Foreach by reference on constant
3--FILE--
4<?php
5for ($i = 0; $i < 3; $i++) {
6    foreach ([1,2,3] as &$val) {
7        echo "$val\n";
8    }
9}
10?>
11--EXPECT--
121
132
143
151
162
173
181
192
203
21