1--TEST--
2Switch jumptable generation
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8--EXTENSIONS--
9opcache
10--FILE--
11<?php
12
13function test1(string $val) {
14    switch ($val) {
15        case 'str1':
16        case 'str2':
17            echo "correct\n";
18            return;
19    }
20    echo "wrong\n";
21}
22function test2(int $val) {
23    switch ($val) {
24        case 1:
25        case 2:
26        case 3:
27        case 4:
28        case 5:
29            echo "correct\n";
30            return;
31    }
32    echo "wrong\n";
33}
34test1("str1");
35test2(1);
36
37?>
38--EXPECT--
39correct
40correct
41