xref: /PHP-8.0/Zend/tests/jump16.phpt (revision f8d79582)
1--TEST--
2jump 16: goto into try/catch
3--FILE--
4<?php
5goto a;
6try {
7    echo "1";
8a:
9    echo "2";
10    throw new Exception();
11} catch (Exception $e) {
12    echo "3";
13}
14echo "4";
15goto b;
16try {
17    echo "5";
18    throw new Exception();
19} catch (Exception $e) {
20    echo "6";
21b:
22    echo "7";
23}
24echo "8\n";
25?>
26--EXPECT--
2723478
28