3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Test{} $t1 = new Test; $t2 = stdClass; $t3 = new Test; echo $t1, $t2, $t3;
Output for 7.1.0
Notice: Use of undefined constant stdClass - assumed 'stdClass' in /in/EDl3r on line 4 Recoverable fatal error: Object of class Test could not be converted to string in /in/EDl3r on line 6
Process exited with code 255.
Output for 5.2.0 - 7.0.14
Notice: Use of undefined constant stdClass - assumed 'stdClass' in /in/EDl3r on line 4 Catchable fatal error: Object of class Test could not be converted to string in /in/EDl3r on line 6
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Notice: Use of undefined constant stdClass - assumed 'stdClass' in /in/EDl3r on line 4 Object id #1stdClassObject id #2
Output for 4.3.0 - 4.4.9
Notice: Use of undefined constant stdClass - assumed 'stdClass' in /in/EDl3r on line 4 ObjectstdClassObject