3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $z[0] = 'wonderous'; $b = 'a thing of beauty is '.$z[0]; $o = new stdClass; $o->wonderous = $b; echo "{$o->$z[0]}\n"; echo $o->{$z[0]},"\n";
based on 2Ob2V
Output for 7.0.0 - 7.2.0
Notice: Array to string conversion in /in/W00S6 on line 7 Notice: Undefined property: stdClass::$Array in /in/W00S6 on line 7 a thing of beauty is wonderous
Output for 5.3.21 - 5.6.28
a thing of beauty is wonderous a thing of beauty is wonderous