1--TEST--
2Alternative offset syntax should emit E_COMPILE_ERROR outside const expression
3--FILE--
4<?php
5$foo = 'BAR';
6var_dump($foo{0});
7?>
8--EXPECTF--
9Fatal error: Array and string offset access syntax with curly braces is no longer supported in %s on line 3
10