3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function f1() { return "f1"; } } abstract class B extends A { abstract function f2(); } class C extends B { function f2() { return "f2"; } }

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.40.0150.00718.58
8.3.30.0080.00819.10
8.3.20.0060.00320.35
8.3.10.0030.00623.52
8.3.00.0030.00620.96
8.2.170.0070.01122.96
8.2.160.0120.00922.03
8.2.150.0040.00424.18
8.2.140.0060.01224.66
8.2.130.0000.00826.16
8.2.120.0040.00419.54
8.2.110.0030.00721.00
8.2.100.0120.00017.66
8.2.90.0040.00419.09
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0040.00417.80
8.2.50.0000.00818.10
8.2.40.0050.00319.75
8.2.30.0000.00817.81
8.2.20.0040.00417.57
8.2.10.0040.00417.93
8.2.00.0040.00417.42
8.1.270.0060.00320.49
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0090.00021.02
8.1.230.0060.00617.46
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0050.00317.10
8.1.180.0050.00218.10
8.1.170.0040.00418.59
8.1.160.0040.00421.98
8.1.150.0050.00318.80
8.1.140.0050.00319.10
8.1.130.0000.00717.82
8.1.120.0040.00417.37
8.1.110.0030.00517.32
8.1.100.0000.00817.30
8.1.90.0040.00417.23
8.1.80.0050.00217.37
8.1.70.0000.00817.25
8.1.60.0030.00617.45
8.1.50.0000.00917.27
8.1.40.0030.00517.26
8.1.30.0060.00317.48
8.1.20.0040.00417.51
8.1.10.0050.00317.21
8.1.00.0060.00317.21
8.0.300.0070.00018.77
8.0.290.0000.00716.58
8.0.280.0070.00018.32
8.0.270.0000.00717.00
8.0.260.0030.00317.12
8.0.250.0000.00716.83
8.0.240.0040.00416.80
8.0.230.0030.00516.70
8.0.220.0070.00016.63
8.0.210.0000.00716.69
8.0.200.0000.00716.73
8.0.190.0040.00416.84
8.0.180.0040.00416.62
8.0.170.0030.00616.68
8.0.160.0040.00416.80
8.0.150.0040.00416.75
8.0.140.0040.00416.67
8.0.130.0030.00313.11
8.0.120.0040.00416.73
8.0.110.0040.00416.79
8.0.100.0070.00016.64
8.0.90.0040.00416.56
8.0.80.0090.01116.71
8.0.70.0020.00516.67
8.0.60.0040.00416.73
8.0.50.0030.00516.75
8.0.30.0140.00817.00
8.0.20.0130.01217.40
8.0.10.0000.00716.77
8.0.00.0080.01116.68
7.4.330.0050.00015.07
7.4.320.0070.00016.29
7.4.300.0050.00316.30
7.4.290.0000.00716.51
7.4.280.0030.00416.34
7.4.270.0030.00316.52
7.4.260.0060.00316.41
7.4.250.0040.00416.28
7.4.240.0020.00516.34
7.4.230.0040.00416.46
7.4.220.0120.00616.32
7.4.210.0050.00916.48
7.4.200.0070.00016.43
7.4.160.0050.01016.31
7.4.150.0160.00317.40
7.4.140.0110.00617.86
7.4.130.0110.00916.35
7.4.120.0100.00716.37
7.4.110.0100.01416.44
7.4.100.0090.00916.42
7.4.90.0140.00916.30
7.4.80.0120.00616.53
7.4.70.0030.01216.39
7.4.60.0090.00616.35
7.4.50.0050.00016.36
7.4.40.0060.00916.42
7.4.30.0100.01116.09
7.4.00.0130.00314.61
7.3.330.0030.00313.24
7.3.320.0130.00013.01
7.3.310.0000.00816.03
7.3.300.0050.00216.12
7.3.290.0070.00016.11
7.3.280.0130.00616.14
7.3.270.0030.01317.40
7.3.260.0070.01716.15
7.3.250.0080.01016.31
7.3.240.0070.01016.19
7.3.230.0090.01316.39
7.3.210.0150.00916.22
7.3.200.0070.01019.39
7.3.190.0100.01016.06
7.3.180.0090.00616.39
7.3.170.0070.01016.41
7.3.160.0070.01016.17
7.3.10.0040.00816.55
7.3.00.0070.00316.57
7.2.330.0110.00716.39
7.2.320.0060.01216.20
7.2.310.0120.01316.54
7.2.300.0160.00016.32
7.2.290.0130.01016.60
7.2.130.0040.00916.65
7.2.120.0040.00416.45
7.2.110.0040.01116.80
7.2.100.0030.01016.77
7.2.90.0070.00716.80
7.2.80.0030.00716.74
7.2.70.0070.00716.65
7.2.60.0030.01016.68
7.2.50.0080.00316.82
7.2.40.0060.00916.71
7.2.30.0050.00516.73
7.2.20.0070.00716.48
7.2.10.0070.01116.60
7.2.00.0100.00817.88
7.1.250.0070.00715.27
7.1.100.0070.00717.82
7.1.70.0040.00716.93
7.1.60.0100.01319.46
7.1.50.0080.01216.82
7.1.00.0030.07722.48
7.0.200.0120.00014.81
7.0.140.0070.03022.09
7.0.60.0070.06720.00
7.0.50.0170.07317.90
7.0.40.0200.07320.18
7.0.30.0270.08320.25
7.0.20.0200.04020.23
7.0.10.0030.05020.06
7.0.00.0170.05320.12
5.6.280.0030.09020.91
5.6.210.0100.07720.73
5.6.200.0100.08318.18
5.6.190.0000.04720.61
5.6.180.0370.07020.51
5.6.170.0230.07720.50
5.6.160.0000.04320.45
5.6.150.0030.08718.28
5.6.140.0070.03718.18
5.6.130.0100.07318.19
5.6.120.0000.09021.10
5.6.110.0100.08721.12
5.6.100.0130.04021.11
5.6.90.0000.04720.98
5.6.80.0230.06020.42
5.5.350.0270.04720.43
5.5.340.0130.06318.05
5.5.330.0100.09020.37
5.5.320.0000.05320.24
5.5.310.0430.06720.27
5.5.300.0170.07317.98
5.5.290.0070.06718.07
5.5.280.0100.04720.89
5.5.270.0130.06020.75
5.5.260.0070.04020.77
5.5.250.0170.06720.66
5.5.240.0130.05320.18
5.4.450.0170.06019.54
5.4.440.0330.08319.47
5.4.430.0200.05319.21
5.4.420.0230.05719.54
5.4.410.0170.05319.41
5.4.400.0170.05019.23
5.4.390.0100.05718.75
5.4.380.0100.07318.50
5.4.370.0200.05318.54
5.4.360.0070.06018.53
5.4.350.0130.06018.53
5.4.340.0130.06018.80
5.4.320.0130.05718.80
5.4.310.0130.06018.61
5.4.300.0100.05718.78
5.4.290.0130.05718.64
5.4.280.0270.04318.57
5.4.270.0130.05718.63
5.4.260.0370.03018.60
5.4.250.0070.08018.78
5.4.240.0070.06318.71
5.4.230.0100.07018.62
5.4.220.0200.07018.68
5.4.210.0170.05718.68
5.4.200.0070.06016.57
5.4.190.0070.05718.45
5.4.180.0170.07018.72
5.4.170.0130.05718.77
5.4.160.0200.06318.76
5.4.150.0130.06718.70
5.4.140.0070.06316.30
5.4.130.0200.04716.19
5.4.120.0200.04716.25
5.4.110.0100.05316.23
5.4.100.0170.05016.33
5.4.90.0100.05716.29
5.4.80.0130.04716.35
5.4.70.0130.05316.29
5.4.60.0130.05716.30
5.4.50.0300.04716.26
5.4.40.0230.05716.38
5.4.30.0130.04716.39
5.4.20.0000.06016.28
5.4.10.0200.05016.38
5.4.00.0130.05715.75
5.3.290.0130.06714.86
5.3.280.0130.05714.78
5.3.270.0230.06714.82
5.3.260.0230.05314.79
5.3.250.0130.06314.65
5.3.240.0130.05314.65
5.3.230.0100.05714.82
5.3.220.0070.05714.79
5.3.210.0170.06014.79
5.3.200.0200.06314.59
5.3.190.0270.06014.61
5.3.180.0200.06314.60
5.3.170.0030.07314.79
5.3.160.0230.05714.66
5.3.150.0070.06014.75
5.3.140.0100.05714.66
5.3.130.0130.07714.56
5.3.120.0070.07014.57
5.3.110.0100.08014.68
5.3.100.0170.05714.14
5.3.90.0200.05014.13
5.3.80.0230.04314.08
5.3.70.0070.06014.10
5.3.60.0200.06314.06
5.3.50.0270.05014.07
5.3.40.0300.05014.03
5.3.30.0170.06313.97
5.3.20.0170.06013.91
5.3.10.0130.05013.78
5.3.00.0130.05013.77
5.2.170.0000.05711.37
5.2.160.0070.06011.15
5.2.150.0170.04011.35
5.2.140.0070.04711.18
5.2.130.0100.04311.30
5.2.120.0070.04311.09
5.2.110.0170.03711.14
5.2.100.0070.05711.12
5.2.90.0070.04711.15
5.2.80.0100.04311.12
5.2.70.0130.05311.22
5.2.60.0070.06011.16
5.2.50.0230.04311.13
5.2.40.0070.05711.10
5.2.30.0170.04711.10
5.2.20.0170.04311.01
5.2.10.0070.04310.92
5.2.00.0070.04310.74
5.1.60.0200.03710.20
5.1.50.0070.05010.10
5.1.40.0130.04310.05
5.1.30.0100.04710.34
5.1.20.0130.03710.45
5.1.10.0100.03710.20
5.1.00.0000.04310.18
5.0.50.0130.0238.75
5.0.40.0100.0308.45
5.0.30.0070.0508.25
5.0.20.0000.0378.30
5.0.10.0000.0438.20
5.0.00.0100.0508.19
4.4.90.0100.0235.93
4.4.80.0030.0305.89
4.4.70.0100.0275.91
4.4.60.0130.0205.99
4.4.50.0130.0206.00
4.4.40.0000.0435.96
4.4.30.0030.0305.89
4.4.20.0030.0276.02
4.4.10.0030.0305.98
4.4.00.0030.0375.99
4.3.110.0100.0205.84
4.3.100.0030.0235.83
4.3.90.0000.0305.83
4.3.80.0070.0335.80
4.3.70.0070.0275.86
4.3.60.0170.0105.77
4.3.50.0070.0205.78
4.3.40.0000.0405.74
4.3.30.0070.0234.60
4.3.20.0000.0274.56
4.3.10.0070.0174.50
4.3.00.0030.02314.46

preferences:
42.75 ms | 400 KiB | 5 Q