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"["0foo"]["0bar"]); 10?> 11--EXPECTF-- 12string(1) "b" 13string(1) "o" 14 15Warning: Illegal string offset "0foo" in %s on line %d 16 17Warning: Illegal string offset "0bar" in %s on line %d 18string(1) "f" 19