3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function f(){ echo 'f'; } } class B extends A { public function f($f='B::f'){ echo $f; } } new B();

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.0120.00918.55
8.3.50.0150.00521.08
8.3.40.0070.00718.72
8.3.30.0090.00620.21
8.3.20.0040.00418.48
8.3.10.0040.00421.02
8.3.00.0000.00723.52
8.2.180.0100.00716.63
8.2.170.0070.01122.96
8.2.160.0110.00420.52
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00419.64
8.2.110.0090.00019.25
8.2.100.0080.00317.59
8.2.90.0040.00419.09
8.2.80.0050.00319.21
8.2.70.0080.00017.38
8.2.60.0050.00317.92
8.2.50.0000.00818.07
8.2.40.0080.00018.09
8.2.30.0040.00419.48
8.2.20.0040.00417.39
8.2.10.0000.00817.53
8.2.00.0000.00917.46
8.1.280.0100.00325.92
8.1.270.0070.00023.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0040.00720.47
8.1.230.0080.00320.88
8.1.220.0000.00818.77
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0040.00417.28
8.1.180.0020.00518.10
8.1.170.0050.00318.46
8.1.160.0000.00718.86
8.1.150.0030.00618.51
8.1.140.0040.00417.36
8.1.130.0050.00317.67
8.1.120.0040.00717.29
8.1.110.0000.00717.30
8.1.100.0040.00417.30
8.1.90.0070.00017.32
8.1.80.0000.00817.27
8.1.70.0030.00617.22
8.1.60.0000.00817.46
8.1.50.0000.00817.36
8.1.40.0070.00017.38
8.1.30.0000.00717.48
8.1.20.0030.00617.47
8.1.10.0080.00017.41
8.1.00.0060.00617.45
8.0.300.0070.00019.85
8.0.290.0030.00317.05
8.0.280.0000.00718.28
8.0.270.0000.00717.09
8.0.260.0050.00316.68
8.0.250.0070.00016.95
8.0.240.0050.00316.77
8.0.230.0000.00816.79
8.0.220.0030.00316.75
8.0.210.0100.00016.64
8.0.200.0060.00016.84
8.0.190.0050.00216.82
8.0.180.0030.00716.79
8.0.170.0020.00516.73
8.0.160.0040.00416.82
8.0.150.0000.00716.78
8.0.140.0000.00716.67
8.0.130.0060.00013.22
8.0.120.0000.00816.68
8.0.110.0050.00316.79
8.0.100.0000.00716.71
8.0.90.0070.00016.75
8.0.80.0030.01216.80
8.0.70.0020.00516.74
8.0.60.0050.00316.64
8.0.50.0000.00716.58
8.0.30.0090.00916.92
8.0.20.0090.00917.40
8.0.10.0000.00716.67
8.0.00.0090.00916.53
7.4.330.0050.00015.05
7.4.320.0030.00316.38
7.4.300.0000.00616.37
7.4.290.0070.00016.39
7.4.280.0000.00716.40
7.4.270.0030.00316.23
7.4.260.0030.00313.13
7.4.250.0000.00816.31
7.4.240.0030.00316.51
7.4.230.0070.00016.56
7.4.220.0090.00916.38
7.4.210.0100.00616.41
7.4.200.0000.00716.45
7.4.190.0070.00016.53
7.4.160.0100.00716.43
7.4.150.0070.01117.40
7.4.140.0050.01217.86
7.4.130.0120.01016.25
7.4.120.0090.01116.34
7.4.110.0160.00616.31
7.4.100.0110.00716.37
7.4.90.0130.00716.23
7.4.80.0110.01119.39
7.4.70.0040.01816.31
7.4.60.0120.00316.39
7.4.50.0040.00416.20
7.4.40.0000.01622.77
7.4.30.0100.01316.38
7.4.00.0070.01014.71
7.3.330.0050.00013.09
7.3.320.0020.00213.15
7.3.310.0000.00716.13
7.3.300.0030.00316.13
7.3.290.0110.00716.16
7.3.280.0050.01116.17
7.3.270.0160.00317.40
7.3.260.0120.00818.24
7.3.250.0070.01016.41
7.3.240.0060.00916.28
7.3.230.0030.01416.39
7.3.210.0060.00916.38
7.3.200.0060.01219.39
7.3.190.0150.00616.11
7.3.180.0060.00916.22
7.3.170.0100.00716.27
7.3.160.0110.00716.27
7.3.120.0030.01314.66
7.2.330.0150.00916.49
7.2.320.0090.00916.23
7.2.310.0090.00916.44
7.2.300.0030.01316.60
7.2.290.0060.00916.17
7.2.00.0030.01018.89
7.1.200.0060.00315.26
7.1.100.0000.00817.95
7.1.70.0180.00016.56
7.1.60.0070.01719.17
7.1.50.0210.00316.54
7.1.00.0070.07722.29
7.0.200.0040.00416.70
7.0.140.0070.07021.99
7.0.100.0070.07019.89
7.0.90.0130.06319.89
7.0.80.0130.04719.98
7.0.70.0070.05019.99
7.0.60.0000.08019.93
7.0.50.0130.07720.34
7.0.40.0070.09320.07
7.0.30.0070.04320.04
7.0.20.0070.04720.14
7.0.10.0030.04720.16
7.0.00.0000.04720.16
5.6.280.0030.07321.13
5.6.250.0130.08320.54
5.6.240.0230.06720.61
5.6.230.0170.05320.54
5.6.220.0170.07720.67
5.6.210.0100.04020.77
5.6.200.0030.09321.04
5.6.190.0070.08321.17
5.6.180.0000.04721.09
5.6.170.0000.04721.13
5.6.160.0030.04320.89
5.6.150.0030.04321.07
5.6.140.0100.03721.04
5.6.130.0030.04321.02
5.6.120.0000.05021.13
5.6.110.0070.08321.07
5.6.100.0030.04321.03
5.6.90.0070.04021.00
5.6.80.0070.03720.46
5.6.70.0030.04320.34
5.6.60.0070.03720.55
5.6.50.0070.03720.50
5.6.40.0030.04020.40
5.6.30.0070.03720.40
5.6.20.0070.04320.31
5.6.10.0070.04320.43
5.6.00.0030.03720.48
5.5.380.0070.08720.57
5.5.370.0170.07720.50
5.5.360.0170.06720.39
5.5.350.0100.04720.46
5.5.340.0070.06020.74
5.5.330.0130.08020.89
5.5.320.0100.03320.87
5.5.310.0100.03720.77
5.5.300.0030.03320.84
5.5.290.0130.03320.88
5.5.280.0100.03320.83
5.5.270.0030.04320.79
5.5.260.0070.05320.77
5.5.250.0030.06320.62
5.5.240.0070.03720.21
5.5.230.0030.04320.14
5.5.220.0030.04020.20
5.5.210.0100.03320.17
5.5.200.0070.03720.21
5.5.190.0070.03320.11
5.5.180.0000.03720.08
5.5.160.0070.03720.18
5.5.150.0070.03020.23
5.5.140.0030.03320.13
5.5.130.0030.04020.18
5.5.120.0030.04020.18
5.5.110.0030.08320.07
5.5.100.0100.07320.12
5.5.90.0070.06720.07
5.5.80.0070.06020.08
5.5.70.0100.07720.06
5.5.60.0070.08020.13
5.5.50.0070.07720.06
5.5.40.0130.07020.08
5.5.30.0100.08020.05
5.5.20.0100.07319.99
5.5.10.0070.07720.13
5.5.00.0100.08019.97
5.4.450.0070.03019.37
5.4.440.0070.04019.55
5.4.430.0030.04019.37
5.4.420.0070.03719.45
5.4.410.0030.04019.14
5.4.400.0070.04319.25
5.4.390.0000.04318.85
5.4.380.0000.04019.16
5.4.370.0000.04319.13
5.4.360.0100.03719.12
5.4.350.0030.03718.85
5.4.340.0070.03719.23
5.4.320.0030.03719.21
5.4.310.0000.04018.85
5.4.300.0000.04718.85
5.4.290.0030.03319.18
5.4.280.0030.05719.04
5.4.270.0100.06019.03
5.4.260.0170.06318.93
5.4.250.0070.07019.16
5.4.240.0030.08019.11
5.4.230.0070.07719.15
5.4.220.0030.04319.12
5.4.210.0130.06319.04
5.4.200.0030.08018.84
5.4.190.0100.04019.03
5.4.180.0070.07719.09
5.4.170.0130.07319.04
5.4.160.0070.07719.01
5.4.150.0130.07018.93
5.4.140.0070.07316.39
5.4.130.0070.05316.46
5.4.120.0130.06316.40
5.4.110.0000.06016.56
5.4.100.0070.06016.48
5.4.90.0030.04016.44
5.4.80.0070.04316.31
5.4.70.0070.05716.50
5.4.60.0030.04016.30
5.4.50.0000.07316.40
5.4.40.0000.07716.36
5.4.30.0130.06316.32
5.4.20.0100.06316.23
5.4.10.0070.07716.46
5.4.00.0100.06715.78
5.3.290.0000.04014.77
5.3.280.0100.07014.54
5.3.270.0070.05314.73
5.3.260.0130.07314.57
5.3.250.0130.07014.69
5.3.240.0200.03714.54
5.3.230.0130.06014.66
5.3.220.0130.06014.59
5.3.210.0070.05314.67
5.3.200.0030.05714.57
5.3.190.0100.04314.50
5.3.180.0030.05714.50
5.3.170.0170.04714.63
5.3.160.0100.06014.57
5.3.150.0100.07714.54
5.3.140.0070.06314.48
5.3.130.0070.07314.56
5.3.120.0070.06714.65
5.3.110.0030.07314.62
5.3.100.0100.06014.00
5.3.90.0130.04013.95
5.3.80.0000.04314.05
5.3.70.0100.06714.14
5.3.60.0070.04313.91
5.3.50.0170.06314.07
5.3.40.0070.06014.01
5.3.30.0170.05713.90
5.3.20.0100.07013.58
5.3.10.0100.06713.57
5.3.00.0100.03713.67
5.2.170.0070.06011.05
5.2.160.0130.05011.20
5.2.150.0130.05311.20
5.2.140.0030.06011.07
5.2.130.0070.06011.20
5.2.120.0030.07011.16
5.2.110.0030.05311.22
5.2.100.0070.06011.24
5.2.90.0100.04711.19
5.2.80.0000.06711.23
5.2.70.0030.05310.95
5.2.60.0030.06011.12
5.2.50.0100.04710.94
5.2.40.0030.05010.90
5.2.30.0030.05311.11
5.2.20.0030.03011.02
5.2.10.0000.05710.88
5.2.00.0100.04310.80
5.1.60.0030.0339.98
5.1.50.0030.0539.84
5.1.40.0070.0339.97
5.1.30.0130.04710.24
5.1.20.0030.04710.36
5.1.10.0070.03310.18
5.1.00.0070.05310.12
5.0.50.0100.0308.65
5.0.40.0100.0378.48
5.0.30.0030.0478.41
5.0.20.0000.0338.41
5.0.10.0000.0378.41
5.0.00.0000.0678.41
4.4.90.0000.0378.41
4.4.80.0000.0338.41
4.4.70.0030.0178.41
4.4.60.0100.0178.41
4.4.50.0000.0378.41
4.4.40.0030.0308.41
4.4.30.0070.0278.41
4.4.20.0030.0338.41
4.4.10.0070.0308.41
4.4.00.0000.0508.41
4.3.110.0070.0278.41
4.3.100.0070.0308.41
4.3.90.0000.0208.41
4.3.80.0000.0378.41
4.3.70.0000.0338.41
4.3.60.0000.0208.41
4.3.50.0030.0338.41
4.3.40.0030.0508.41
4.3.30.0000.0308.41
4.3.20.0000.0278.41
4.3.10.0000.0308.41
4.3.00.0030.0338.41

preferences:
42.72 ms | 401 KiB | 5 Q