1--TEST--
2Const string dereference
3--FILE--
4<?php
5error_reporting(E_ALL);
6
7var_dump("foobar"[3]);
8var_dump("foobar"[2][0]);
9var_dump("foobar"["foo"]["bar"]);
10
11--EXPECTF--
12string(1) "b"
13string(1) "o"
14
15Warning: Illegal string offset 'foo' in %sconst_dereference_002.php on line %d
16
17Warning: Illegal string offset 'bar' in %sconst_dereference_002.php on line %d
18string(1) "f"
19