3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bar = range(0, 5); $i = 0; $foo[$i] = $bar[$i++]; var_dump($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.4.10.0070.01017.71
8.3.140.0030.00716.89
8.3.130.0060.00318.23
8.3.120.0150.00020.67
8.3.110.0060.00320.94
8.3.100.0030.00624.06
8.3.90.0040.01126.77
8.3.80.0090.00316.63
8.3.70.0070.01516.58
8.3.60.0130.00316.63
8.3.50.0140.00522.77
8.3.40.0120.00318.59
8.3.30.0040.01118.83
8.3.20.0040.00420.09
8.3.10.0040.00421.73
8.3.00.0000.00817.59
8.2.260.0080.00016.80
8.2.250.0040.00416.94
8.2.240.0000.00917.25
8.2.230.0140.00722.58
8.2.220.0080.00437.54
8.2.210.0070.00026.77
8.2.200.0090.00018.09
8.2.190.0000.01416.58
8.2.180.0170.00316.50
8.2.170.0110.00722.96
8.2.160.0100.00320.39
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0050.00221.16
8.2.110.0100.00019.24
8.2.100.0070.00417.72
8.2.90.0000.00719.28
8.2.80.0080.00017.97
8.2.70.0000.00817.38
8.2.60.0000.00717.93
8.2.50.0080.00018.07
8.2.40.0090.00018.16
8.2.30.0050.00317.96
8.2.20.0000.00717.66
8.2.10.0000.00718.03
8.2.00.0000.00817.71
8.1.310.0230.00016.04
8.1.300.0080.00018.18
8.1.290.0030.00630.84
8.1.280.0180.00725.92
8.1.270.0080.00023.83
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0040.00422.47
8.1.230.0090.00320.93
8.1.220.0090.00018.77
8.1.210.0030.00819.09
8.1.200.0070.00317.35
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0000.00818.59
8.1.160.0050.00221.94
8.1.150.0040.00418.66
8.1.140.0030.00617.33
8.1.130.0040.00417.81
8.1.120.0020.00517.30
8.1.110.0000.00717.39
8.1.100.0040.00417.38
8.1.90.0030.00317.30
8.1.80.0070.00017.33
8.1.70.0000.00717.34
8.1.60.0030.00617.51
8.1.50.0050.00317.48
8.1.40.0020.00517.45
8.1.30.0040.00417.55
8.1.20.0080.00017.62
8.1.10.0040.00417.55
8.1.00.0000.00717.43
8.0.300.0000.00719.98
8.0.290.0000.00816.63
8.0.280.0030.00318.33
8.0.270.0000.00716.74
8.0.260.0030.00317.19
8.0.250.0040.00416.78
8.0.240.0000.00716.81
8.0.230.0060.00316.85
8.0.220.0040.00416.70
8.0.210.0020.00516.81
8.0.200.0000.00616.83
8.0.190.0000.00916.88
8.0.180.0040.00416.70
8.0.170.0040.00416.70
8.0.160.0040.00416.71
8.0.150.0070.00016.70
8.0.140.0040.00416.80
8.0.130.0050.00013.20
8.0.120.0070.00016.73
8.0.110.0040.00416.88
8.0.100.0070.00016.70
8.0.90.0000.00716.77
8.0.80.0070.01016.75
8.0.70.0020.00516.88
8.0.60.0000.00816.67
8.0.50.0050.00216.80
8.0.30.0130.00816.87
8.0.20.0140.01117.40
8.0.10.0000.00716.79
8.0.00.0150.00316.63
7.4.330.0000.00515.14
7.4.320.0060.00016.38
7.4.300.0060.00016.37
7.4.290.0030.00316.50
7.4.280.0000.01016.36
7.4.270.0070.00016.43
7.4.260.0070.00016.43
7.4.250.0030.00516.48
7.4.240.0060.00216.52
7.4.230.0070.00016.22
7.4.220.0090.00616.39
7.4.210.0100.00416.55
7.4.200.0040.00416.54
7.4.160.0100.00716.38
7.4.150.0190.00017.40
7.4.140.0130.00617.86
7.4.130.0130.00616.32
7.4.120.0110.00616.45
7.4.110.0090.00616.31
7.4.100.0000.01716.46
7.4.90.0000.01816.47
7.4.80.0070.01019.39
7.4.70.0110.00616.39
7.4.60.0090.00816.56
7.4.50.0000.00916.21
7.4.40.0100.00616.41
7.4.30.0170.00016.43
7.4.00.0060.00914.98
7.3.330.0030.00313.19
7.3.320.0000.00513.22
7.3.310.0000.00716.40
7.3.300.0050.00216.37
7.3.290.0000.01416.30
7.3.280.0050.01216.33
7.3.270.0100.00717.40
7.3.260.0130.00616.50
7.3.250.0070.01316.37
7.3.240.0060.00916.26
7.3.230.0140.00316.39
7.3.210.0070.01016.15
7.3.200.0100.01119.39
7.3.190.0120.00416.52
7.3.180.0120.00916.62
7.3.170.0040.01616.41
7.3.160.0060.00916.29
7.3.10.0100.00316.57
7.3.00.0080.00316.71
7.2.330.0100.00716.45
7.2.320.0100.00616.72
7.2.310.0060.01116.38
7.2.300.0100.00716.78
7.2.290.0030.01416.34
7.2.130.0000.01516.77
7.2.120.0040.00717.04
7.2.110.0030.00816.61
7.2.100.0070.00316.70
7.2.90.0040.01117.05
7.2.80.0060.00616.76
7.2.70.0070.00317.08
7.2.60.0040.00916.84
7.2.50.0000.01116.91
7.2.40.0000.01217.09
7.2.30.0090.00017.07
7.2.20.0110.00416.68
7.2.10.0110.00716.84
7.2.00.0070.00716.84
7.1.250.0030.01015.88
7.1.200.0030.00315.75
7.1.70.0050.00517.02
7.1.60.0060.01919.40
7.1.50.0100.01617.13
7.1.00.0030.07322.51
7.0.200.0150.00016.67
7.0.140.0030.07322.09
7.0.60.0100.06719.90
7.0.50.0030.08017.91
7.0.40.0030.04720.20
7.0.30.0330.07020.03
7.0.20.0300.07020.11
7.0.10.0100.07320.33
7.0.00.0030.09320.01
5.6.280.0030.07321.02
5.6.210.0100.07720.72
5.6.200.0070.08018.18
5.6.190.0000.09020.42
5.6.180.4100.04020.64
5.6.170.0270.07720.37
5.6.160.0030.08720.37
5.6.150.0100.06718.21
5.6.140.0000.08318.09
5.6.130.0130.05718.07
5.6.120.0070.03721.05
5.6.110.0030.09020.99
5.6.100.0030.09021.10
5.6.90.0130.07020.95
5.6.80.0030.03720.27
5.6.70.4500.03320.36
5.5.350.0130.04720.34
5.5.340.0170.04717.98
5.5.330.0070.07720.21
5.5.320.2630.04320.30
5.5.310.0330.04320.13
5.5.300.0070.08017.88
5.5.290.0100.06717.95
5.5.280.0070.08320.64
5.5.270.0200.07320.86
5.5.260.0070.04020.77
5.5.250.0030.07020.68
5.5.240.0300.07020.25
5.4.450.0030.04319.47
5.4.440.0030.04319.10
5.4.430.0130.04319.50
5.4.420.0100.05019.46
5.4.410.0030.04319.11
5.4.400.0100.04319.10
5.4.390.0070.08019.14
5.4.380.0000.05318.92
5.4.370.0030.05019.14
5.4.360.0030.06019.08
5.4.350.0070.05018.81
5.4.340.0000.07019.16
5.4.320.0030.08018.79
5.4.310.0070.07019.09
5.4.300.0100.06019.07
5.4.290.0070.03719.18
5.4.280.0070.08018.89
5.4.270.0030.07718.78
5.4.260.0030.08019.00
5.4.250.0070.03719.14
5.4.240.0100.07318.80
5.4.230.0030.05718.93
5.4.220.0070.05019.03
5.4.210.0070.04319.13
5.4.200.0030.04719.07
5.4.190.0070.07319.09
5.4.180.0070.03319.07
5.4.170.0070.08319.07
5.4.160.0130.07318.93
5.4.150.0000.06719.16
5.4.140.0100.04316.25
5.4.130.0030.04716.16
5.4.120.0070.03316.34
5.4.110.0030.04716.36
5.4.100.0000.04316.41
5.4.90.0000.04316.61
5.4.80.0030.06016.23
5.4.70.0030.05716.22
5.4.60.0070.07016.21
5.4.50.0030.03716.23
5.4.40.0070.07716.34
5.4.30.0070.04316.27
5.4.20.0070.03316.25
5.4.10.0000.07316.31
5.4.00.0030.04315.71
5.3.290.0100.07714.68
5.3.280.0130.06014.55
5.3.270.0030.05714.62
5.3.260.0130.07314.49
5.3.250.0030.07314.50
5.3.240.0130.06314.69
5.3.230.0070.03714.47
5.3.220.0070.03314.48
5.3.210.0100.06014.65
5.3.200.0030.04314.50
5.3.190.0100.03314.54
5.3.180.0030.07014.49
5.3.170.0100.07014.55
5.3.160.0000.05714.43
5.3.150.0070.03714.46
5.3.140.0170.03014.48
5.3.130.0100.07314.46
5.3.120.0030.03714.46
5.3.110.0130.06314.48
5.3.100.0130.05313.82
5.3.90.0100.04713.96
5.3.80.0030.04313.96
5.3.70.0000.07713.98
5.3.60.0000.04013.95
5.3.50.0000.04013.92
5.3.40.0130.03014.03
5.3.30.0030.03713.87
5.3.20.0070.06013.63
5.3.10.0100.06713.58
5.3.00.0070.07313.57
5.2.170.0030.04310.96
5.2.160.0070.03711.30
5.2.150.0100.05711.30
5.2.140.0030.05711.09
5.2.130.0030.06011.11
5.2.120.0030.06311.08
5.2.110.0130.05310.95
5.2.100.0070.05011.08
5.2.90.0030.05711.11
5.2.80.0030.06310.99
5.2.70.0100.05311.04
5.2.60.0000.03710.86
5.2.50.0000.03311.03
5.2.40.0030.03010.80
5.2.30.0000.03310.82
5.2.20.0000.03010.90
5.2.10.0070.02710.91
5.2.00.0070.05710.66
5.1.60.0070.0309.89
5.1.50.0100.0409.89
5.1.40.0030.0539.98
5.1.30.0070.04310.23
5.1.20.0070.02710.25
5.1.10.0030.04010.03
5.1.00.0070.02710.14
5.0.50.0000.0408.44
5.0.40.0000.0208.40
5.0.30.0000.0538.37
5.0.20.0000.0208.35
5.0.10.0070.0238.31
5.0.00.0030.0408.31
4.4.90.0100.0138.31
4.4.80.0000.0178.31
4.4.70.0000.0208.31
4.4.60.0030.0438.31
4.4.50.0030.0138.31
4.4.40.0030.0278.31
4.4.30.0070.0338.31
4.4.20.0100.0378.31
4.4.10.0000.0178.31
4.4.00.0000.0278.31
4.3.110.0030.0138.31
4.3.100.0000.0308.31
4.3.90.0000.0378.31
4.3.80.0000.0408.31
4.3.70.0000.0208.31
4.3.60.0030.0278.31
4.3.50.0030.0308.31
4.3.40.0070.0378.31
4.3.30.0000.0408.31
4.3.20.0000.0278.31
4.3.10.0030.0138.31
4.3.00.0000.0338.31

preferences:
28.91 ms | 403 KiB | 5 Q