3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 50000; $time = microtime(true); $items = array(); for ($i = 0; $i < $count; $i++) { $items[] = array(); } $spentTime = microtime(true) - $time; echo number_format($spentTime, 3) . ' seconds';

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)
7.3.10.0040.01118.64
7.3.00.0090.00618.55
7.2.130.0110.01118.88
7.2.120.0070.01018.91
7.2.110.0150.00018.89
7.2.100.0100.01018.74
7.2.90.0030.01418.72
7.2.80.0030.00918.56
7.2.70.0060.00918.77
7.2.60.0040.01018.88
7.2.50.0030.01318.74
7.2.40.0030.01318.82
7.2.30.0070.00718.81
7.2.20.0120.00618.80
7.2.10.0000.01118.45
7.2.00.0060.01019.92
7.1.250.0040.01517.66
7.1.240.0060.00617.73
7.1.230.0100.01017.71
7.1.220.0100.00717.44
7.1.210.0040.01517.54
7.1.200.0040.01417.70
7.1.190.0060.01317.69
7.1.180.0030.01017.70
7.1.170.0030.01217.77
7.1.160.0030.01017.59
7.1.150.0030.01517.58
7.1.140.0100.00717.63
7.1.130.0060.01217.59
7.1.120.0040.01117.81
7.1.110.0070.01317.86
7.1.100.0030.01017.75
7.1.90.0100.00317.66
7.1.80.0070.01017.52
7.1.70.0030.01018.34
7.1.60.0070.01318.57
7.1.50.0080.01018.29
7.1.40.0080.01217.75
7.1.30.0030.01417.43
7.1.20.0060.01317.65
7.1.10.0100.01417.71
7.1.00.0100.04520.85
7.0.330.0100.01419.53
7.0.320.0130.01319.41
7.0.310.0120.00619.36
7.0.300.0000.01719.32
7.0.290.0060.01219.40
7.0.280.0070.00719.28
7.0.270.0060.01319.17
7.0.260.0060.00919.49
7.0.250.0100.00519.46
7.0.240.0040.01419.32
7.0.230.0110.01419.48
7.0.220.0180.00719.41
7.0.210.0030.01019.15
7.0.200.0110.00420.10
7.0.190.0000.01619.46
7.0.180.0030.02419.63
7.0.170.0030.01719.53
7.0.160.0100.01419.38
7.0.150.0130.01019.38
7.0.140.0120.03822.71
7.0.130.0070.01519.34
7.0.120.0120.00619.47
7.0.110.0040.01619.30
7.0.100.0100.00719.34
7.0.90.0050.01419.50
7.0.80.0090.00619.30
7.0.70.0070.01019.21
7.0.60.0060.04322.12
7.0.50.0120.03721.10
7.0.40.0110.03218.23
7.0.30.0200.04318.22
7.0.20.0290.03618.16
7.0.10.0050.04818.20
7.0.00.0080.04618.09
5.6.380.0100.02725.70
5.6.370.0120.02825.87
5.6.360.0130.01726.00
5.6.350.0100.02725.64
5.6.340.0170.01725.88
5.6.330.0160.02025.84
5.6.320.0180.01825.75
5.6.310.0070.03125.91
5.6.300.0220.01625.71
5.6.290.0110.02725.57
5.6.280.0170.05529.10
5.6.270.0130.02825.58
5.6.260.0170.02025.57
5.6.250.0070.03825.74
5.6.240.0150.01525.52
5.6.230.0240.01625.54
5.6.220.0150.02525.64
5.6.210.0120.06128.77
5.6.200.0120.05727.42
5.6.190.0100.06028.48
5.6.180.0140.02928.57
5.6.170.0200.05828.48
5.6.160.0130.05928.60
5.6.150.0070.05527.64
5.6.140.0120.04127.35
5.6.130.0100.06227.50
5.6.120.0090.04428.93
5.6.110.0070.04528.87
5.6.100.0070.05928.95
5.6.90.0100.04628.93
5.6.80.0100.03528.57
5.6.70.0030.03125.50
5.6.60.0130.01625.40
5.6.50.0090.02225.10
5.6.40.0090.02225.44
5.6.30.0130.01625.44
5.6.20.0130.01325.63
5.6.10.0100.01925.31
5.6.00.0140.01725.36
5.5.380.0130.01622.22
5.5.370.0030.02322.48
5.5.360.0090.02521.93
5.5.350.0110.06126.92
5.5.340.0100.06225.72
5.5.330.0070.05926.87
5.5.320.0210.05026.86
5.5.310.0270.05326.88
5.5.300.0080.04825.65
5.5.290.0050.03825.68
5.5.280.0120.04527.04
5.5.270.0100.05927.28
5.5.260.0100.03727.24
5.5.250.0080.05827.00
5.5.240.0130.03126.83
5.5.230.0100.02022.25
5.5.220.0030.02922.21
5.5.210.0100.01922.30
5.5.200.0030.02322.41
5.5.190.0100.01722.21
5.5.180.0140.02522.26
5.5.170.0100.02122.35
5.5.160.0070.02522.29
5.5.150.0100.02322.27
5.5.140.0030.03022.43
5.5.130.0070.02122.41
5.5.120.0040.02922.43
5.5.110.0100.02622.34
5.5.100.0130.02022.34
5.5.90.0070.02022.22
5.5.80.0070.02422.34
5.5.70.0000.03022.11
5.5.60.0160.01622.49
5.5.50.0040.02922.26
5.5.40.0030.02422.13
5.5.30.0070.02722.31
5.5.20.0170.01322.20
5.5.10.0070.02322.36
5.5.00.0090.02122.31
5.4.450.0170.05526.28
5.4.440.0220.04826.37
5.4.430.0130.05726.40
5.4.420.0230.05126.26
5.4.410.0120.04526.34
5.4.400.0240.04426.34
5.4.390.0170.05226.29
5.4.380.0100.03826.09
5.4.370.0130.04226.13
5.4.360.0150.05126.19
5.4.350.0130.04426.12
5.4.340.0180.04526.10
5.4.330.0110.02222.20
5.4.320.0280.04125.96
5.4.310.0210.05126.19
5.4.300.0120.03526.02
5.4.290.0250.04026.32
5.4.280.0100.03726.18
5.4.270.0150.04126.08
5.4.260.0070.04926.11
5.4.250.0120.03526.29
5.4.240.0180.02826.16
5.4.230.0180.02926.19
5.4.220.0130.03026.22
5.4.210.0130.03126.19
5.4.200.0180.02826.11
5.4.190.0160.03326.18
5.4.180.0220.02526.29
5.4.170.0080.03726.28
5.4.160.0070.03926.11
5.4.150.0160.02826.02
5.4.140.0170.02524.83
5.4.130.0120.03124.87
5.4.120.0120.03524.95
5.4.110.0120.04824.71
5.4.100.0150.03124.91
5.4.90.0170.02724.96
5.4.80.0110.03124.93
5.4.70.0130.03024.95
5.4.60.0130.03824.84
5.4.50.0140.03824.88
5.4.40.0200.05424.78
5.4.30.0080.04724.93
5.4.20.0220.04924.88
5.4.10.0120.04924.59
5.4.00.0120.04024.50
5.3.290.0180.05427.32
5.3.280.0170.04027.26
5.3.270.0120.04127.22
5.3.260.0170.03227.21
5.3.250.0170.03527.26
5.3.240.0150.03627.10
5.3.230.0150.03727.33
5.3.220.0130.03727.01
5.3.210.0100.05027.13
5.3.200.0110.03927.16
5.3.190.0120.04027.23
5.3.180.0100.03927.22
5.3.170.0080.03927.20
5.3.160.0130.03627.21
5.3.150.0150.06127.21
5.3.140.0100.05627.20
5.3.130.0080.04727.08
5.3.120.0170.03627.25
5.3.110.0120.05727.18
5.3.100.0170.04026.81
5.3.90.0180.06026.95
5.3.80.0120.06126.71
5.3.70.0180.05826.75
5.3.60.0130.04726.86
5.3.50.0220.04026.75
5.3.40.0130.05026.71
5.3.30.0150.05926.71
5.3.20.0120.05126.67
5.3.10.0170.05826.54
5.3.00.0170.05826.49
5.2.170.0130.05324.53
5.2.160.0170.05324.33
5.2.150.0140.05124.51
5.2.140.0150.05524.39
5.2.130.0100.05224.35
5.2.120.0120.04524.45
5.2.110.0180.04324.41
5.2.100.0120.04924.36
5.2.90.0120.05424.54
5.2.80.0180.03524.40
5.2.70.0200.02724.23
5.2.60.0130.05524.27
5.2.50.0180.05624.55
5.2.40.0100.04824.51
5.2.30.0130.05224.41
5.2.20.0130.05824.41
5.2.10.0100.05624.47
5.2.00.0080.04824.28
5.1.60.0120.05527.79
5.1.50.0100.05127.80
5.1.40.0130.04227.79
5.1.30.0170.05028.00
5.1.20.0220.04528.01
5.1.10.0190.04227.82
5.1.00.0150.03527.60
5.0.50.0110.05426.37
5.0.40.0120.06126.47
5.0.30.0230.05926.25
5.0.20.0130.05826.24
5.0.10.0160.04726.27
5.0.00.0050.05426.17
4.4.90.0120.05824.09
4.4.80.0100.05824.13
4.4.70.0080.06124.20
4.4.60.0080.05624.08
4.4.50.0080.05424.12
4.4.40.0110.06424.13
4.4.30.0120.05324.17
4.4.20.0080.04124.23
4.4.10.0050.06224.12
4.4.00.0100.06824.08
4.3.110.0080.05524.00
4.3.100.0100.04324.02
4.3.90.0100.04524.01
4.3.80.0150.04124.02
4.3.70.0100.04223.95
4.3.60.0120.05524.00
4.3.50.0180.04923.97
4.3.40.0100.05724.02
4.3.30.0100.05123.07
4.3.20.0170.05023.01
4.3.10.0030.04723.10
4.3.00.0130.05623.09

preferences:
35.86 ms | 400 KiB | 5 Q