3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $obj = new MyObject(); // Create a new instance of MyObject into $obj $obj->thisProperty = 'Fred'; // Set a property in the $obj object called thisProperty $obj->getProperty(); // Call a method of the $obj object named getProperty ?>
based on KOFGA
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'MyObject' not found in /in/LFua1:2 Stack trace: #0 {main} thrown in /in/LFua1 on line 2
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Fatal error: Class 'MyObject' not found in /in/LFua1 on line 2
Process exited with code 255.