3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = (object)['2778845'=> 'derp']; var_dump($d->{'2778845'});
based on 7HXMJ
Output for 7.2.0
string(4) "derp"
Output for 5.4.11 - 7.1.10
Notice: Undefined property: stdClass::$2778845 in /in/24VcF on line 5 NULL
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/24VcF on line 3
Process exited with code 255.