3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $obj = (object)array('123' => '456'); print_r($obj, $obj->{'123'}, $obj->{123});
based on RPJXH
Output for 5.2.6 - 7.1.0
Notice: Undefined property: stdClass::$123 in /in/rmAjo on line 4 Notice: Undefined property: stdClass::$123 in /in/rmAjo on line 4 Warning: print_r() expects at most 2 parameters, 3 given in /in/rmAjo on line 4
Output for 5.0.0 - 5.2.5
Notice: Undefined property: stdClass::$123 in /in/rmAjo on line 4 Notice: Undefined property: stdClass::$123 in /in/rmAjo on line 4 Warning: print_r() expects at most 2 parameters, 3 given in /in/rmAjo on line 4
Output for 4.3.3 - 4.4.9
Fatal error: Property name must be a string in /in/rmAjo on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.2

Process exited with code 139.