xref: /PHP-8.1/Zend/tests/jump13.phpt (revision 782352c5)
1--TEST--
2jump 10: goto with try blocks
3--FILE--
4<?php
5goto a;
6e: return;
7try {
8    a: print 1;
9    goto b;
10    try {
11        b: print 2;
12        goto c;
13    }
14    catch(Exception $e) {
15        c: print 3;
16        goto d;
17    }
18}
19catch(Exception $e) {
20    d: print 4;
21    goto e;
22}
23?>
24--EXPECT--
251234
26