3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = (object) array('name' => 'aaron'); $bar = array( 'baz' => 'name' ); echo $foo->$bar['baz'];
based on jcqcm
Output for 7.0.0 - 7.2.0
Notice: Array to string conversion in /in/AT6bU on line 10 Notice: Undefined property: stdClass::$Array in /in/AT6bU on line 10
Output for 5.3.19 - 5.6.28
aaron