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--EXPECTF--
11string(1) "b"
12string(1) "o"
13
14Warning: Illegal string offset 'foo' in %sconst_dereference_002.php on line %d
15
16Warning: Illegal string offset 'bar' in %sconst_dereference_002.php on line %d
17string(1) "f"
18