3v4l.org

run code in 300+ PHP versions simultaneously
<?php class time{ public static $x; public function echoTime() { $this->x = time(); echo $this->x; } } class A { public static function test() { $time = new time(); $time->echoTime(); } } A::test(); sleep(2); A::test();

preferences:
32.27 ms | 402 KiB | 5 Q