3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public static function works() { return 'works'; } } class Implementation extends Test { public static function works() { return 'hmm'; } } echo Implementation::works();

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.70.0120.00616.50
8.3.60.0140.00316.37
8.3.50.0140.00622.04
8.3.40.0100.01018.84
8.3.30.0030.01018.82
8.3.20.0000.00820.12
8.3.10.0040.00421.64
8.3.00.0090.00020.82
8.2.190.0110.00716.63
8.2.180.0150.00418.17
8.2.170.0120.00322.96
8.2.160.0070.00722.13
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00719.95
8.2.110.0040.00420.35
8.2.100.0080.00418.09
8.2.90.0050.00219.09
8.2.80.0050.00317.97
8.2.70.0000.00817.38
8.2.60.0090.00017.90
8.2.50.0030.00618.07
8.2.40.0050.00319.76
8.2.30.0000.00717.98
8.2.20.0040.00417.55
8.2.10.0040.00417.95
8.2.00.0070.00017.59
8.1.280.0110.00425.92
8.1.270.0080.00020.59
8.1.260.0040.01126.35
8.1.250.0080.00028.09
8.1.240.0030.00623.80
8.1.230.0060.00618.97
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0000.00817.11
8.1.180.0030.00518.10
8.1.170.0000.00818.33
8.1.160.0040.00421.93
8.1.150.0000.00818.80
8.1.140.0040.00417.35
8.1.130.0070.00017.75
8.1.120.0030.00317.30
8.1.110.0000.00717.30
8.1.100.0050.00317.32
8.1.90.0000.01017.20
8.1.80.0040.00417.17
8.1.70.0030.00317.21
8.1.60.0080.00017.46
8.1.50.0030.00517.45
8.1.40.0080.00017.47
8.1.30.0030.00617.49
8.1.20.0060.00317.46
8.1.10.0000.00717.46
8.1.00.0000.00717.47
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0070.00018.47
8.0.270.0000.00817.16
8.0.260.0000.00817.17
8.0.250.0000.00716.90
8.0.240.0080.00016.98
8.0.230.0040.00416.86
8.0.220.0030.00316.81
8.0.210.0070.00016.86
8.0.200.0070.00016.87
8.0.190.0030.00316.86
8.0.180.0000.00916.87
8.0.170.0040.00416.82
8.0.160.0070.00016.91
8.0.150.0070.00016.74
8.0.140.0090.00016.74
8.0.130.0030.00313.21
8.0.120.0040.00416.74
8.0.110.0000.00816.70
8.0.100.0040.00416.65
8.0.90.0000.00716.73
8.0.80.0090.01216.69
8.0.70.0000.00716.75
8.0.60.0000.00816.80
8.0.50.0000.00716.62
8.0.30.0100.01016.82
8.0.20.0290.01417.40
8.0.10.0000.00716.78
8.0.00.0140.00516.65
7.4.330.0080.00015.03
7.4.320.0000.00616.47
7.4.300.0070.00016.47
7.4.290.0040.00416.53
7.4.280.0040.00416.41
7.4.270.0000.00716.46
7.4.260.0000.00916.31
7.4.250.0080.00016.45
7.4.240.0040.00416.43
7.4.230.0020.00516.41
7.4.220.0070.01116.50
7.4.210.0120.00816.59
7.4.200.0040.00416.55
7.4.160.0090.01216.34
7.4.150.0150.00617.40
7.4.140.0100.01017.86
7.4.130.0070.00916.44
7.4.120.0080.00916.37
7.4.110.0150.00916.36
7.4.100.0140.00316.41
7.4.90.0130.00416.58
7.4.80.0120.00916.72
7.4.70.0110.00516.32
7.4.60.0090.00616.45
7.4.50.0000.00816.56
7.4.40.0060.00916.59
7.4.30.0090.01016.20
7.4.00.0040.01114.48
7.3.330.0000.00513.18
7.3.320.0080.00413.23
7.3.310.0070.00016.08
7.3.300.0000.00716.13
7.3.290.0030.00316.18
7.3.280.0070.00716.22
7.3.270.0120.01217.40
7.3.260.0090.01216.45
7.3.250.0090.00916.46
7.3.240.0090.00916.36
7.3.230.0120.01116.55
7.3.210.0120.00616.36
7.3.200.0150.00719.39
7.3.190.0100.00616.15
7.3.180.0130.00316.41
7.3.170.0140.00916.28
7.3.160.0030.01416.55
7.2.330.0100.00716.57
7.2.320.0080.00816.52
7.2.310.0110.00916.55
7.2.300.0100.01416.52
7.2.290.0080.00816.61
7.2.60.0030.01016.54
7.2.00.0000.01219.25
7.1.200.0100.00315.52
7.1.100.0100.01018.13
7.1.70.0000.01116.90
7.1.60.0130.01019.46
7.1.50.0030.01416.74
7.1.00.0000.08022.46
7.0.200.0460.00714.36
7.0.140.0030.04321.95
7.0.60.0030.06719.99
7.0.50.0230.05717.93
7.0.40.0030.08320.13
7.0.30.0300.06320.34
7.0.20.0200.03720.30
7.0.10.0000.07320.09
7.0.00.0000.06020.22
5.6.280.0030.07020.91
5.6.210.0100.07720.59
5.6.200.0130.06718.22
5.6.190.0000.04720.34
5.6.180.0400.05720.63
5.6.170.0270.07720.45
5.6.160.0000.04720.48
5.6.150.0030.08318.20
5.6.140.0100.06318.18
5.6.130.0070.03718.16
5.6.120.0070.08720.97
5.6.110.0070.05021.03
5.6.100.0100.08021.01
5.6.90.0030.04320.97
5.6.80.0070.06320.29
5.5.350.0330.07320.43
5.5.340.0130.06318.04
5.5.330.0070.08320.13
5.5.320.0100.06320.27
5.5.310.0370.04720.28
5.5.300.0100.08017.95
5.5.290.0200.06717.94
5.5.280.0000.06020.78
5.5.270.0030.04020.87
5.5.260.0100.08020.73
5.5.250.0030.05320.59
5.5.240.0100.05720.32
5.4.450.0730.05719.16
5.4.440.1130.04719.55
5.4.430.0930.04719.55
5.4.420.0830.05319.60
5.4.410.1030.05319.32
5.4.400.0900.05019.16
5.4.390.0130.07318.57
5.4.380.0200.06018.57
5.4.370.0230.05718.70
5.4.360.0230.07018.54
5.4.350.0070.06718.75
5.4.340.0270.05718.79
5.4.320.0170.05718.50
5.4.310.0130.05318.46
5.4.300.0200.05018.50
5.4.290.0170.05018.47
5.4.280.0100.05718.72
5.4.270.0130.05718.71
5.4.260.0230.05018.75
5.4.250.0200.05018.71
5.4.240.0100.06018.73
5.4.230.0300.04018.74
5.4.220.0200.05318.72
5.4.210.0170.05318.68
5.4.200.0130.05016.53
5.4.190.0170.05318.70
5.4.180.0200.05318.82
5.4.170.0270.05018.59
5.4.160.0070.06318.68
5.4.150.0170.06718.76
5.4.140.0100.05716.32
5.4.130.0070.05716.37
5.4.120.0130.05016.37
5.4.110.0130.05016.46
5.4.100.0170.05016.44
5.4.90.0100.06016.27
5.4.80.0100.05716.23
5.4.70.0330.05016.20
5.4.60.0230.05716.17
5.4.50.0100.05316.18
5.4.40.0130.05316.27
5.4.30.0200.06016.25
5.4.20.0200.05716.41
5.4.10.0030.05716.23
5.4.00.0170.04715.89
5.3.290.0130.06314.69
5.3.280.0170.05014.62
5.3.270.0100.06014.83
5.3.260.0100.05714.66
5.3.250.0100.05714.65
5.3.240.0130.05314.64
5.3.230.0100.05714.76
5.3.220.0230.06014.69
5.3.210.0170.06714.66
5.3.200.0100.07314.59
5.3.190.0100.05314.70
5.3.180.0100.05314.56
5.3.170.0130.05014.77
5.3.160.0130.05314.76
5.3.150.0200.04714.60
5.3.140.0270.04314.72
5.3.130.0130.05314.57
5.3.120.0070.07314.54
5.3.110.0130.05314.59
5.3.100.0230.05014.19
5.3.90.0170.05314.02
5.3.80.0230.04014.08
5.3.70.0100.05314.14
5.3.60.0230.06014.21
5.3.50.0170.05014.05
5.3.40.0200.04714.19
5.3.30.0200.04314.01
5.3.20.0030.06013.86
5.3.10.0200.04013.69
5.3.00.0170.04713.72
5.2.170.0070.04711.21
5.2.160.0130.04711.25
5.2.150.0070.04711.26
5.2.140.0100.04711.14
5.2.130.0130.04711.12
5.2.120.0100.05011.20
5.2.110.0170.03311.22
5.2.100.0070.05311.21
5.2.90.0170.03311.09
5.2.80.0070.04711.14
5.2.70.0100.04311.21
5.2.60.0170.05311.15
5.2.50.0070.04711.09
5.2.40.0100.04011.11
5.2.30.0100.04011.01
5.2.20.0100.04010.99
5.2.10.0170.04011.07
5.2.00.0270.04710.73
5.1.60.0130.03010.03
5.1.50.0100.04010.12
5.1.40.0070.0409.98
5.1.30.0100.03710.39
5.1.20.0170.03010.39
5.1.10.0100.04710.06
5.1.00.0100.03710.19
5.0.50.0030.0338.53
5.0.40.0030.0308.62
5.0.30.0170.0338.43
5.0.20.0070.0338.30
5.0.10.0000.0338.29
5.0.00.0100.0508.30
4.4.90.0070.0305.91
4.4.80.0070.0235.91
4.4.70.0070.0235.87
4.4.60.0100.0205.88
4.4.50.0070.0205.89
4.4.40.0070.0335.88
4.4.30.0000.0275.96
4.4.20.0100.0176.01
4.4.10.0100.0205.98
4.4.00.0070.0335.91
4.3.110.0070.0235.84
4.3.100.0070.0205.83
4.3.90.0100.0205.91
4.3.80.0000.0475.81
4.3.70.0000.0335.86
4.3.60.0100.0135.82
4.3.50.0030.0235.87
4.3.40.0030.0335.84
4.3.30.0070.0174.66
4.3.20.0070.0174.59
4.3.10.0000.0234.52
4.3.00.0070.02014.62

preferences:
54.61 ms | 401 KiB | 5 Q