xref: /PHP-8.1/Zend/tests/foreach_006.phpt (revision f8d79582)
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