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 time(); $time->echoTime(); } } A::test(); usleep(200000); A::test();
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.24, 7.0.0 - 7.0.20, 7.1.0, 7.1.6, 7.1.10, 7.1.25, 7.2.0 - 7.2.6, 7.2.8 - 7.2.13, 7.3.0 - 7.3.1
14467996471446799647
Output for 7.1.5, 7.1.7, 7.1.20, 7.2.7
14467996471446799648

preferences:
94 ms | 402 KiB | 102 Q