3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = array( 'a' => 'b' ); $bar = array( 'b' => 'c' ); $bar = (object)$bar; echo $bar->$foo['a'];
based on 4RQb7
Output for 7.0.0 - 7.2.0
Notice: Array to string conversion in /in/8h9VK on line 14 Notice: Undefined property: stdClass::$Array in /in/8h9VK on line 14
Output for 5.3.20 - 5.6.21
c