3v4l.org

run code in 300+ PHP versions simultaneously
<? class Foo { public function foo() { return "foo"; } } class Bar { public function foo() { return "foo"; } } $a = [Foo, Bar]; $b = new $a[1]; echo $b->foo();

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.0030.01016.38
8.3.50.0260.00721.15
8.3.40.0140.00318.72
8.3.30.0080.00818.44
8.3.20.0070.00020.12
8.3.10.0050.00223.48
8.3.00.0040.00419.67
8.2.180.0060.00918.29
8.2.170.0110.00422.96
8.2.160.0100.00320.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0030.00617.25
8.2.110.0090.00022.19
8.2.100.0040.00817.80
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0030.00617.80
8.2.50.0050.00318.07
8.2.40.0030.00621.20
8.2.30.0000.00720.61
8.2.20.0000.00917.46
8.2.10.0030.00517.84
8.2.00.0000.00717.79
8.1.280.0000.01425.92
8.1.270.0090.00623.84
8.1.260.0050.00226.35
8.1.250.0000.00728.09
8.1.240.0000.00923.91
8.1.230.0100.00017.66
8.1.220.0000.00917.74
8.1.210.0030.00518.77
8.1.200.0050.00517.11
8.1.190.0030.00517.10
8.1.180.0030.00518.10
8.1.170.0080.00020.25
8.1.160.0040.00421.93
8.1.150.0040.00418.73
8.1.140.0040.00419.58
8.1.130.0030.00317.60
8.1.120.0040.00417.34
8.1.110.0040.00417.23
8.1.100.0030.00717.27
8.1.90.0000.00717.19
8.1.80.0050.00317.18
8.1.70.0000.00817.21
8.1.60.0000.00917.46
8.1.50.0060.00617.43
8.1.40.0080.00017.40
8.1.30.0000.00817.55
8.1.20.0070.00017.44
8.1.10.0000.00717.45
8.1.00.0040.00417.34
8.0.300.0000.00918.77
8.0.290.0060.00316.75
8.0.280.0030.00318.35
8.0.270.0070.00017.13
8.0.260.0000.00617.17
8.0.250.0050.00316.80
8.0.240.0030.00316.73
8.0.230.0050.00216.84
8.0.220.0070.00016.74
8.0.210.0000.00816.64
8.0.200.0030.00716.84
8.0.190.0060.00316.77
8.0.180.0040.00416.69
8.0.170.0040.00416.80
8.0.160.0040.00316.68
8.0.150.0070.00016.67
8.0.140.0000.00716.71
8.0.130.0060.00013.41
8.0.120.0070.00016.74
8.0.110.0030.00516.70
8.0.100.0000.00716.79
8.0.90.0040.00416.58
8.0.80.0100.01016.68
8.0.70.0040.00416.55
8.0.60.0040.00416.82
8.0.50.0050.00316.67
8.0.30.0030.01517.03
8.0.20.0120.00817.40
8.0.10.0050.00316.81
8.0.00.0100.01016.67
7.4.330.0050.00015.08
7.4.320.0000.00716.38
7.4.300.0070.00016.37
7.4.290.0030.00316.43
7.4.280.0000.00716.36
7.4.270.0040.00416.47
7.4.260.0030.00316.24
7.4.250.0030.00316.47
7.4.240.0020.00616.45
7.4.230.0000.00716.55
7.4.220.0090.01316.47
7.4.210.0070.01016.54
7.4.200.0040.00416.25
7.4.160.0000.01416.35
7.4.150.0130.00417.40
7.4.140.0070.01017.86
7.4.130.0140.00716.42
7.4.120.0130.00516.44
7.4.110.0090.00916.31
7.4.100.0060.01316.37
7.4.90.0100.00616.20
7.4.80.0030.01319.39
7.4.70.0040.01116.37
7.4.60.0090.00616.32
7.4.50.0000.00916.20
7.4.40.0100.00716.30
7.4.30.0090.00916.23
7.4.00.0070.00814.85
7.3.330.0050.00013.21
7.3.320.0000.00613.30
7.3.310.0000.00616.18
7.3.300.0000.00715.96
7.3.290.0070.00816.12
7.3.280.0130.00516.12
7.3.270.0130.01017.40
7.3.260.0090.00916.29
7.3.240.0090.01216.10
7.3.230.0100.01316.43
7.3.210.0070.01316.22
7.3.200.0060.00916.47
7.3.190.0030.01516.40
7.3.180.0090.00616.28
7.3.170.0160.00416.37
7.3.160.0130.00316.33
7.3.120.0060.00614.81
7.3.110.0070.01014.39
7.3.100.0110.00714.70
7.3.90.0030.01414.82
7.3.80.0040.01114.61
7.3.70.0100.00314.69
7.3.60.0030.01014.57
7.3.50.0090.00614.65
7.3.40.0090.00014.82
7.3.30.0030.01314.55
7.3.20.0040.00816.62
7.3.10.0070.00716.45
7.3.00.0030.00716.61
7.2.330.0120.00616.44
7.2.320.0030.01516.21
7.2.310.0130.00316.21
7.2.300.0090.00916.39
7.2.290.0060.01616.30
7.2.250.0100.01014.78
7.2.240.0040.01814.84
7.2.230.0070.01014.96
7.2.220.0040.01115.03
7.2.210.0070.01114.76
7.2.200.0060.01214.75
7.2.190.0030.01314.88
7.2.180.0070.00714.81
7.2.170.0040.00814.80
7.2.60.0030.00716.86
7.1.330.0040.00815.56
7.1.320.0130.00315.64
7.1.310.0070.00715.57
7.1.300.0090.00615.51
7.1.290.0090.00915.81
7.1.280.0070.00715.28
7.1.270.0070.00315.48
7.1.260.0080.00315.63
7.1.200.0060.00615.61
7.1.70.0030.00717.14
7.1.60.0110.01419.50
7.1.50.0100.01416.86
7.1.00.0070.07322.48
7.0.200.1270.00714.63
7.0.60.0000.07719.90
7.0.50.0070.08017.86
7.0.40.0000.09320.22
7.0.30.0500.08720.17
7.0.20.0230.08020.10
7.0.10.0070.09020.09
7.0.00.0100.08720.25
5.6.280.0000.03721.13
5.6.210.0030.09020.77
5.6.200.0100.06018.16
5.6.190.0070.09020.64
5.6.180.0270.07320.49
5.6.170.0370.05320.44
5.6.160.0030.04020.46
5.6.150.0030.09018.21
5.6.140.0030.04018.27
5.6.130.0100.08318.14
5.6.120.0070.05320.99
5.6.110.0130.08321.11
5.6.100.0170.08020.97
5.6.90.0000.05020.97
5.6.80.0130.08020.51
5.5.350.0070.06720.40
5.5.340.0000.08318.02
5.5.330.0100.08020.32
5.5.320.2930.04320.34
5.5.310.0270.08020.28
5.5.300.0030.08717.95
5.5.290.0030.06017.97
5.5.280.0130.08020.89
5.5.270.0070.07320.66
5.5.260.0100.08020.76
5.5.250.0070.06720.45
5.5.240.0070.05720.04
5.4.450.0270.05319.57
5.4.440.0370.05319.55
5.4.430.0270.06319.60
5.4.420.0270.05319.33
5.4.410.0170.06719.52
5.4.400.0330.05319.15
5.4.390.0330.06719.15
5.4.380.0300.06719.23
5.4.370.0200.06719.25
5.4.360.0330.07319.06
5.4.350.0270.05719.06
5.4.340.0300.05019.29
5.4.320.0200.06019.15
5.4.310.0370.06318.84
5.4.300.0270.04719.25
5.4.290.0200.05719.25
5.4.280.0400.06318.87
5.4.270.0300.05019.32
5.4.260.0230.05719.28
5.4.250.0430.04319.01
5.4.240.0170.06019.21
5.4.230.0330.04319.13
5.4.220.0300.05719.25
5.4.210.0230.05319.29
5.4.200.0300.04719.00
5.4.190.0230.05319.21
5.4.180.0230.05019.05
5.4.170.0200.06018.83
5.4.160.0300.06018.80
5.4.150.0300.06318.95
5.4.140.0370.05016.58
5.4.130.0170.05716.55
5.4.120.0230.05316.40
5.4.110.0370.04316.68
5.4.100.0270.04716.57
5.4.90.0270.05016.57
5.4.80.0200.04716.65
5.4.70.0230.07316.59
5.4.60.0030.04316.48
5.4.50.0100.05716.48
5.4.40.0270.05316.25
5.4.30.0230.04716.38
5.4.20.0170.03316.37

preferences:
45.14 ms | 401 KiB | 5 Q