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