3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $suggestion = (object) array('Key' => 'pie'); var_dump( array_key_exists('Key', $suggestion), $suggestion['Key'] );
Output for 7.0.0 - 7.2.6
Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /in/2vkO5:7 Stack trace: #0 {main} thrown in /in/2vkO5 on line 7
Process exited with code 255.
Output for 5.3.28 - 5.3.29, 5.4.18 - 5.6.28
Fatal error: Cannot use object of type stdClass as array in /in/2vkO5 on line 7
Process exited with code 255.
Output for 5.0.0 - 5.3.27, 5.4.0 - 5.4.17
Fatal error: Cannot use object of type stdClass as array in /in/7G6hG on line 7
Process exited with code 255.
Output for 4.3.0 - 4.4.9
bool(true) NULL