1--TEST--
2'$x{"offset"}' flag in PHP 8.4 is a Parse error
3--SKIPIF--
4<?php if (PHP_VERSION_ID < 80400) die('skip PHP >= 8.4 only'); ?>
5--FILE--
6<?php
7
8require __DIR__ . '/../util.php';
9
10$code = <<<'PHP'
11<?php
12var_export($x{'offset'});
13PHP;
14
15try {
16    $node = ast\parse_code($code, $version=70);
17    echo ast_dump($node), "\n";
18} catch (ParseError $e) {
19    echo "Caught: ", $e->getMessage(), "\n";
20}
21?>
22--EXPECT--
23Caught: syntax error, unexpected token "{", expecting ")"
24