xref: /PHP-7.4/Zend/tests/bug67111.phpt (revision aa394e70)
1--TEST--
2Bug #67111: Memory leak when using "continue 2" inside two foreach loops
3--FILE--
4<?php
5
6$array1 = [1, 2, 3];
7$array2 = [1, 2, 3];
8
9foreach ($array1 as $x) {
10    foreach ($array2 as $y) {
11        echo "$x.$y\n";
12        continue 2;
13    }
14}
15
16?>
17--EXPECT--
181.1
192.1
203.1
21