3v4l.org

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