3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public static function test() { $time = new time(); echo $time; } } A::test(); usleep(2000); A::test();
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'time' not found in /in/qhAtN:5 Stack trace: #0 /in/qhAtN(10): A::test() #1 {main} thrown in /in/qhAtN on line 5
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Class 'time' not found in /in/qhAtN on line 5
Process exited with code 255.