3v4l.org

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