1--TEST-- 2Multi catch 3--FILE-- 4<?php 5 6require __DIR__ . '/../util.php'; 7 8$code = <<<'PHP' 9<?php 10try { 11} catch (A|B $b) { 12} 13PHP; 14 15echo ast_dump(ast\parse_code($code, $version=70)), "\n"; 16 17?> 18--EXPECT-- 19AST_STMT_LIST 20 0: AST_TRY 21 try: AST_STMT_LIST 22 catches: AST_CATCH_LIST 23 0: AST_CATCH 24 class: AST_NAME_LIST 25 0: AST_NAME 26 flags: NAME_NOT_FQ (1) 27 name: "A" 28 1: AST_NAME 29 flags: NAME_NOT_FQ (1) 30 name: "B" 31 var: AST_VAR 32 name: "b" 33 stmts: AST_STMT_LIST 34 finally: null