3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array('a', 'b', 'c'); $how = (object)$arr; echo $how->{'1'};
Output for 5.2.6 - 7.1.0
Notice: Undefined property: stdClass::$1 in /in/c1FeH on line 7
Output for 5.0.0 - 5.2.5
Notice: Undefined property: stdClass::$1 in /in/c1FeH on line 7
Output for 4.3.0 - 4.4.9
b