3v4l.org

run code in 300+ PHP versions simultaneously
<?php class time{ public function echoTime() { echo time(); } } class A { public static function test() { $time = new tate(); $time->echoTime(); } } A::test(); usleep(2000); A::test();
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.6
Fatal error: Uncaught Error: Class 'tate' not found in /in/fKmug:9 Stack trace: #0 /in/fKmug(14): A::test() #1 {main} thrown in /in/fKmug on line 9
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.28
Fatal error: Class 'tate' not found in /in/fKmug on line 9
Process exited with code 255.

preferences:
87.9 ms | 401 KiB | 90 Q