3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Dad { static function getStatic() { return new static; } static function getSelf() { return new self; } } trait Useless { static function getStatic() { return new static; } } final class A extends Dad { use Useless; static function getSelf() { return new self; } } var_dump(A::getStatic()::class); var_dump(A::getSelf()::class);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0060.01218.27
8.3.50.0070.01116.50
8.3.40.0000.01418.84
8.3.30.0140.00718.41
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0080.00026.16
8.2.180.0170.00325.92
8.2.170.0150.00418.96
8.2.160.0110.00322.96
8.2.150.0040.00425.66
8.2.140.0050.00224.66
8.2.130.0000.00826.16
8.2.120.0060.00319.54
8.2.110.0000.00820.51
8.2.100.0060.00620.70
8.1.280.0040.01125.92
8.1.270.0060.01322.13
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0110.00018.29
8.1.230.0120.00022.06
8.1.50.0140.00617.41
8.0.80.0000.00916.88
7.3.20.0120.00216.14
7.2.340.0060.00816.07

preferences:
44.96 ms | 401 KiB | 5 Q