3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array('123' => '456'); $obj = (object)$arr; var_dump($arr['123']); var_dump($obj->{'123'});
based on HoNN4
Output for 5.2.6 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(3) "456" Notice: Undefined property: stdClass::$123 in /in/SNE8H on line 7 NULL
Output for 5.0.0 - 5.2.5
string(3) "456" Notice: Undefined property: stdClass::$123 in /in/SNE8H on line 7 NULL
Output for 4.3.0 - 4.4.9
string(3) "456" string(3) "456"