3v4l.org

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