3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $collection = new stdClass(); var_dump($collection); var_dump(isset($collection)); var_dump(!isset($collection['error'])); var_dump('okay');
based on 4foBK
Output for 7.0.0 - 7.2.0
object(stdClass)#1 (0) { } bool(true) Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /in/1DeLM:8 Stack trace: #0 {main} thrown in /in/1DeLM on line 8
Process exited with code 255.
Output for 5.3.20 - 5.6.28
object(stdClass)#1 (0) { } bool(true) Fatal error: Cannot use object of type stdClass as array in /in/1DeLM on line 8
Process exited with code 255.