3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = new \ArrayObject; $a->a =0; var_dump($a->a); var_dump($a['a']); var_dump(isset($a->a)); var_dump(isset($a['a']));
Output for 5.4.8 - 7.1.0
int(0) Notice: Undefined index: a in /in/joMQ7 on line 6 NULL bool(true) bool(false)
Output for 5.3.0 - 5.4.7
int(0) Notice: Undefined index: a in /in/joMQ7 on line 6 NULL bool(true) bool(false)
Output for 5.0.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/joMQ7 on line 2 int(0) Notice: Undefined index: a in /in/joMQ7 on line 6 NULL bool(true) bool(false)
Output for 4.3.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/joMQ7 on line 2 Fatal error: Cannot instantiate non-existent class: arrayobject in /in/joMQ7 on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/joMQ7 on line 2 Fatal error: Cannot instantiate non-existent class: arrayobject in /in/joMQ7 on line 2