3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $o = (object)array(42); var_dump(array_key_exists(0, $o), property_exists($o,'0')); var_dump($o->{0});
based on gB7Vc
Output for 7.2.0 - 7.2.6
bool(false) bool(true) int(42)
Output for 5.3.20 - 7.1.20
bool(true) bool(false) Notice: Undefined property: stdClass::$0 in /in/TT3gM on line 7 NULL