xref: /PHP-8.2/Zend/tests/goto_in_foreach.phpt (revision 74380105)
1--TEST--
2goto inside foreach
3--FILE--
4<?php
5
6foreach ([0] as $x) {
7    goto a;
8a:
9    echo "loop\n";
10}
11
12echo "done\n";
13?>
14--EXPECT--
15loop
16done
17