1--TEST-- 2Nested statement lists 3--FILE-- 4<?php 5 6require __DIR__ . '/../util.php'; 7 8$code = <<<'PHP' 9<?php 10$a; 11{ 12 $b; 13 { 14 $c; 15 { 16 $d; 17 } 18 $e; 19 } 20 $f; 21} 22$g; 23PHP; 24 25echo ast_dump(ast\parse_code($code, $version=70)), "\n"; 26 27?> 28--EXPECT-- 29AST_STMT_LIST 30 0: AST_VAR 31 name: "a" 32 1: AST_VAR 33 name: "b" 34 2: AST_VAR 35 name: "c" 36 3: AST_VAR 37 name: "d" 38 4: AST_VAR 39 name: "e" 40 5: AST_VAR 41 name: "f" 42 6: AST_VAR 43 name: "g"