1--TEST--
2'$x{"offset"}' flag in PHP 7.4
3--SKIPIF--
4<?php if (PHP_VERSION_ID < 70400 || PHP_VERSION_ID >= 80400) die('skip PHP 7.4-8.3 only'); ?>
5--FILE--
6<?php
7
8require __DIR__ . '/../util.php';
9
10$code = <<<'PHP'
11<?php
12var_export($x{'offset'});
13PHP;
14
15$node = ast\parse_code($code, $version=70);
16echo ast_dump($node), "\n";
17?>
18--EXPECTF--
19AST_STMT_LIST
20    0: AST_CALL
21        expr: AST_NAME
22            flags: NAME_NOT_FQ (%d)
23            name: "var_export"
24        args: AST_ARG_LIST
25            0: AST_DIM
26                flags: DIM_ALTERNATIVE_SYNTAX (%d)
27                expr: AST_VAR
28                    name: "x"
29                dim: "offset"
30