3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar(array $baz = []) { // } } class Bar extends Foo { public function bar($baz = []) { // } }

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.0140.00416.50
8.3.50.0120.00921.05
8.3.40.0180.00018.43
8.3.30.0090.00618.43
8.3.20.0080.00020.04
8.3.10.0070.00021.77
8.3.00.0040.00419.44
8.2.180.0140.00716.32
8.2.170.0090.00622.96
8.2.160.0070.00720.52
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0090.00017.25
8.2.110.0100.00019.24
8.2.100.0060.00617.59
8.2.90.0090.00017.72
8.2.80.0030.00517.97
8.2.70.0000.00817.50
8.2.60.0080.00317.42
8.2.50.0060.00318.07
8.2.40.0030.00519.45
8.2.30.0050.00219.64
8.2.20.0040.00417.61
8.2.10.0040.00417.98
8.2.00.0000.00717.82
8.1.280.0120.00925.92
8.1.270.0000.00722.15
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00623.61
8.1.230.0100.00020.99
8.1.220.0030.00617.74
8.1.210.0040.00418.93
8.1.200.0090.00016.88
8.1.190.0000.00917.10
8.1.180.0040.00418.10
8.1.170.0080.00018.50
8.1.160.0020.00521.85
8.1.150.0000.00718.75
8.1.140.0080.00017.22
8.1.130.0030.00317.48
8.1.120.0030.00317.22
8.1.110.0070.00017.25
8.1.100.0000.00717.20
8.1.90.0070.00017.21
8.1.80.0050.00317.32
8.1.70.0080.00017.32
8.1.60.0040.00417.41
8.1.50.0060.00317.37
8.1.40.0060.00317.37
8.1.30.0040.00417.50
8.1.20.0080.00017.54
8.1.10.0040.00417.42
8.1.00.0070.00017.28
8.0.300.0040.00419.77
8.0.290.0070.00016.75
8.0.280.0030.00318.42
8.0.270.0030.00317.02
8.0.260.0080.00016.96
8.0.250.0070.00016.79
8.0.240.0030.00316.71
8.0.230.0030.00316.88
8.0.220.0000.00616.78
8.0.210.0030.00316.64
8.0.200.0030.00316.78
8.0.190.0040.00416.86
8.0.180.0070.00016.82
8.0.170.0040.00416.74
8.0.160.0040.00416.80
8.0.150.0060.00316.71
8.0.140.0040.00416.65
8.0.130.0000.00513.27
8.0.120.0060.00316.69
8.0.110.0000.00816.64
8.0.100.0030.00316.78
8.0.90.0000.00716.62
8.0.80.0040.01116.72
8.0.70.0000.00816.64
8.0.60.0040.00416.67
8.0.50.0040.00416.62
8.0.30.0090.00916.87
8.0.20.0090.01017.40
8.0.10.0030.00316.93
8.0.00.0050.01516.60
7.4.330.0030.00315.08
7.4.320.0000.00616.50
7.4.300.0000.00716.46
7.4.290.0070.00316.41
7.4.280.0000.00716.46
7.4.270.0040.00416.38
7.4.260.0000.00816.45
7.4.250.0040.00416.35
7.4.240.0020.00516.42
7.4.230.0000.00716.52
7.4.220.0060.01216.46
7.4.210.0030.01216.54
7.4.200.0000.00716.28
7.4.160.0120.00316.50
7.4.150.0120.00917.40
7.4.140.0080.01217.86
7.4.130.0090.01016.33
7.4.120.0110.00516.43
7.4.110.0120.00616.45
7.4.100.0120.00616.28
7.4.90.0140.00316.34
7.4.80.0100.00719.39
7.4.70.0140.00616.35
7.4.60.0100.01016.29
7.4.50.0000.00816.34
7.4.40.0140.00316.34
7.4.30.0130.00316.39
7.4.00.0060.00814.74
7.3.330.0030.00413.20
7.3.320.0030.00313.25
7.3.310.0030.00316.13
7.3.300.0000.00716.09
7.3.290.0050.01016.21
7.3.280.0050.01316.29
7.3.270.0070.01017.40
7.3.260.0070.01016.23
7.3.250.0080.00916.43
7.3.240.0130.00616.27
7.3.230.0030.01616.39
7.3.210.0060.00916.29
7.3.200.0030.01316.42
7.3.190.0090.00616.31
7.3.180.0100.00616.14
7.3.170.0040.01116.29
7.3.160.0100.01116.30
7.3.120.0070.01014.82
7.3.110.0040.01514.81
7.3.100.0050.00414.27
7.3.90.0100.00714.72
7.3.80.0130.00314.71
7.3.70.0070.00714.61
7.3.60.0080.00314.82
7.3.50.0080.00414.76
7.3.40.0030.00914.71
7.3.30.0030.00614.75
7.3.20.0120.00016.42
7.3.10.0040.01116.34
7.3.00.0040.00816.54
7.2.330.0040.01316.55
7.2.320.0060.01216.30
7.2.310.0100.00616.25
7.2.300.0090.00616.46
7.2.290.0100.00716.29
7.2.250.0070.01415.00
7.2.240.0030.01714.61
7.2.230.0030.01214.88
7.2.220.0060.00614.73
7.2.210.0100.01015.04
7.2.200.0120.00314.96
7.2.190.0070.00714.91
7.2.180.0000.01614.78
7.2.170.0070.01114.66
7.2.60.0030.01016.51
7.2.00.0090.00319.19
7.1.330.0100.00315.68
7.1.320.0040.00415.57
7.1.310.0070.01315.52
7.1.300.0080.00515.36
7.1.290.0070.01015.34
7.1.280.0030.00615.56
7.1.270.0070.00415.38
7.1.260.0060.00315.43
7.1.200.0100.01015.65
7.1.100.0000.01118.00
7.1.70.0070.00016.78
7.1.60.0000.02219.27
7.1.50.0070.01416.83
7.1.00.0070.07022.36
7.0.200.0040.00416.80
7.0.60.0070.06719.94
7.0.50.0070.06717.91
7.0.40.0070.07720.04
7.0.30.0500.07320.26
7.0.20.0200.04320.23
7.0.10.0100.08720.09
7.0.00.0070.05720.16
5.6.210.0130.07320.52
5.6.200.0000.04318.13
5.6.190.0030.05720.64
5.6.180.4130.04320.68
5.6.170.0200.08320.55
5.6.160.0130.07720.50
5.6.150.0100.07718.22
5.6.140.0070.04018.22
5.6.130.0070.04718.29
5.6.120.0100.05320.97
5.6.110.0070.06721.00
5.6.100.0130.07721.13
5.6.90.0070.07021.12
5.6.80.0100.07320.59
5.6.70.4230.04720.48
5.5.350.0000.03320.43
5.5.340.0000.04317.95
5.5.330.0100.06020.38
5.5.320.0300.07720.27
5.5.310.0300.04720.27
5.5.300.0000.04017.98
5.5.290.0030.05318.05
5.5.280.0130.07020.73
5.5.270.0130.07720.93
5.5.260.0070.08020.79
5.5.250.0070.07020.66
5.5.240.0200.06320.16
5.4.450.0200.05019.59
5.4.440.0470.05319.21
5.4.430.0630.06719.42
5.4.420.0130.05319.42
5.4.410.0100.05319.25
5.4.400.0070.05719.08
5.4.390.0470.06719.01
5.4.380.1030.03719.27
5.4.370.0430.06318.83
5.4.360.0170.05019.27
5.4.350.0100.05319.21
5.4.340.0100.06019.13
5.4.320.0770.05318.98
5.4.310.0630.06019.27
5.4.300.0730.04719.11
5.4.290.0600.05719.36
5.4.280.0630.06319.20
5.4.270.0570.06019.23
5.4.260.0600.05319.28
5.4.250.0670.06319.23
5.4.240.0700.04718.86
5.4.230.0770.04718.89
5.4.220.0270.06318.96
5.4.210.0030.06719.23
5.4.200.0130.05019.23
5.4.190.0100.05319.13
5.4.180.0730.05019.11
5.4.170.0630.05719.11
5.4.160.0700.04719.11
5.4.150.0730.05719.02
5.4.140.0600.05716.35
5.4.130.0700.04316.47
5.4.120.0670.04716.47
5.4.110.0770.04016.57
5.4.100.0530.06016.61
5.4.90.0630.04716.32
5.4.80.0770.05316.63
5.4.70.0200.04316.57
5.4.60.0370.04316.36
5.4.50.0070.03316.42
5.4.40.0030.04316.52
5.4.30.0130.03716.52
5.4.20.0300.07016.53

preferences:
55.1 ms | 401 KiB | 5 Q