3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $author = new stdObject(); $author->ID = 1; if (isset($author->ID)) { echo 'hello'; }
based on 4RXbj
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'stdObject' not found in /in/auugI:2 Stack trace: #0 {main} thrown in /in/auugI on line 2
Process exited with code 255.
Output for 5.3.18 - 5.6.21
Fatal error: Class 'stdObject' not found in /in/auugI on line 2
Process exited with code 255.