I write some code:
class a{
public $b=['f'=>'c'];
}
$a=new a;
$b='b';
echo $a->$b['f'];
When I use cli,it output 'c',but when I use apache http server,throw an errorIllegal string offset 'f',so I don't know which precedence is higher between -> and [.There is no introduction about -> on http://php.net. My PHP version is 5.6 and use windows 10.In Linux cli and httpd will output 'c'