3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $o = (object)array(42); var_dump($o->{0});
Output for 7.2.0 - 7.3.0rc4
int(42)
Output for 5.3.20 - 7.1.20
Notice: Undefined property: stdClass::$0 in /in/Jlp4k on line 5 NULL