3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class A { static function call() { return static::test(5); } abstract static function test(int $x): int; } class B extends A { static function test(int $x): int { return $x * 2; } } echo B::call();

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.4.120.0100.00920.75
8.4.110.0100.00918.61
8.4.100.0150.00518.92
8.4.90.0140.00620.48
8.4.80.0090.00518.87
8.4.70.0050.00318.97
8.4.60.0090.00918.82
8.4.50.0070.00518.52
8.4.40.0110.00817.39
8.4.30.0050.00318.79
8.4.20.0130.00621.27
8.4.10.0130.00719.58
8.3.250.0130.00518.91
8.3.240.0100.00816.54
8.3.230.0070.00916.68
8.3.220.0130.00319.05
8.3.210.0100.00616.40
8.3.200.0060.00316.42
8.3.190.0050.00316.98
8.3.180.0130.00518.77
8.3.170.0120.00620.49
8.3.160.0040.01416.64
8.3.150.0000.00817.08
8.3.140.0080.00020.74
8.3.130.0070.00416.44
8.3.120.0060.00319.10
8.3.110.0160.00020.94
8.3.100.0040.00424.06
8.3.90.0040.01116.59
8.3.80.0440.00730.84
8.3.70.0230.00030.84
8.3.60.0230.00330.84
8.3.50.0000.00930.84
8.3.40.0170.00030.84
8.3.30.0180.00030.84
8.3.20.0220.00030.84
8.3.10.0100.00730.84
8.3.00.0170.00030.84
8.2.290.0140.00420.21
8.2.280.0070.00220.15
8.2.270.0150.00317.21
8.2.260.0040.00418.21
8.2.250.0140.00416.50
8.2.240.0040.00417.14
8.2.230.0000.00822.58
8.2.220.0040.00437.54
8.2.210.0200.00026.77
8.2.200.0170.00730.84
8.2.190.0210.00530.84
8.2.180.0300.00730.84
8.2.170.0270.00430.84
8.2.160.0270.00030.84
8.2.150.0150.00530.84
8.2.140.0210.00330.84
8.2.130.0180.00930.84
8.2.120.0090.01430.84
8.2.110.0150.00430.84
8.2.100.0360.00730.84
8.2.90.0310.00930.84
8.2.80.0340.00330.84
8.2.70.0450.00630.84
8.2.60.0400.00730.84
8.2.50.0310.01030.84
8.2.40.0290.01330.84
8.2.30.0360.00330.84
8.2.20.0350.00430.84
8.2.10.0260.01330.84
8.2.00.0340.00430.84
8.1.330.0050.00521.80
8.1.320.0120.00715.99
8.1.310.0090.00016.51
8.1.300.0000.00917.97
8.1.290.0270.01130.84
8.1.280.0350.00630.84
8.1.270.0240.00730.84
8.1.260.0340.00830.84
8.1.250.0360.00730.84
8.1.240.0310.00630.84
8.1.230.0320.00530.84
8.1.220.0360.00830.84
8.1.210.0250.01530.84
8.1.200.0360.00930.84
8.1.190.0270.01730.84
8.1.180.0290.01330.84
8.1.170.0210.00330.84
8.1.160.0190.00830.84
8.1.150.0150.01530.84
8.1.140.0220.00730.84
8.1.130.0260.00330.84
8.1.120.0220.00830.84
8.1.110.0300.00830.84
8.1.100.0220.01630.84
8.1.90.0360.00330.84
8.1.80.0350.00030.84
8.1.70.0220.00630.84
8.1.60.0150.00430.84
8.1.50.0220.00430.84
8.1.40.0160.00230.84
8.1.30.0110.00730.84
8.1.20.0220.00430.84
8.1.10.0320.00830.84
8.1.00.0290.00730.84

preferences:
41.12 ms | 403 KiB | 5 Q