3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class B { public $t = 'rrrrr'; } $a = [ 'test' => 't' ]; $b = new B(); var_dump($b->$a['test']);
Output for hhvm-3.15.4, 7.0.0 - 7.3.0rc3
Notice: Array to string conversion in /in/K8V1f on line 11 Notice: Undefined property: B::$Array in /in/K8V1f on line 11 NULL
Output for 5.6.0 - 5.6.30
string(5) "rrrrr"