3v4l.org

run code in 500+ 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.5.70.0050.00216.82
8.5.60.0080.00916.92
8.5.50.0060.01116.75
8.5.30.0090.00919.30
8.5.20.0110.00720.03
8.5.10.0140.00616.30
8.5.00.0120.00921.77
8.4.220.0140.00719.39
8.4.210.0110.01321.50
8.4.180.0100.01319.66
8.4.170.0130.00823.90
8.4.160.0110.01023.85
8.4.150.0090.00516.85
8.4.140.0120.00917.40
8.4.130.0160.00417.58
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.310.0150.00418.35
8.3.300.0060.00520.34
8.3.290.0150.00520.71
8.3.280.0140.00618.31
8.3.270.0130.00816.58
8.3.260.0090.01116.48
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.300.0120.01017.88
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.340.0150.00621.72
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:
58.45 ms | 993 KiB | 5 Q