3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 20000; $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.0100.00616.51
7.3.00.0030.00616.55
7.2.130.0120.00416.83
7.2.120.0030.00617.04
7.2.110.0030.00916.99
7.2.100.0070.01116.67
7.2.90.0160.00316.84
7.2.80.0030.00616.98
7.2.70.0130.00616.91
7.2.60.0130.00716.89
7.2.50.0030.00616.99
7.2.40.0060.00916.73
7.2.30.0100.00316.90
7.2.20.0070.00716.95
7.2.10.0120.00316.72
7.2.00.0030.00618.14
7.1.250.0030.01015.48
7.1.70.0070.00717.03
7.1.60.0100.01419.46
7.1.50.0190.00616.63
7.1.00.0030.08022.28
7.0.200.0120.00818.91
7.0.140.0100.07023.98
7.0.110.0100.04321.86
7.0.100.0070.04321.87
7.0.90.0100.08021.84
7.0.80.0030.05321.90
7.0.70.0170.07721.86
7.0.60.0100.08021.90
7.0.50.0070.08721.95
7.0.40.0000.05319.72
7.0.30.0070.08019.75
7.0.20.0070.06319.66
7.0.10.0100.05019.75
7.0.00.0000.04019.86
5.6.280.0070.08025.45
5.6.260.0100.06324.97
5.6.250.0000.05024.88
5.6.240.0100.09325.09
5.6.230.0070.09324.95
5.6.220.0100.04724.91
5.6.210.0170.06325.05
5.6.200.0170.08024.96
5.6.190.0200.08025.03
5.6.180.0030.08724.93
5.6.170.0130.08025.02
5.6.160.0070.04025.05
5.6.150.0070.04025.00
5.6.140.0100.08024.93
5.6.130.0100.05324.94
5.6.120.0100.05324.98
5.6.110.0230.07025.02
5.6.100.0130.07325.00
5.6.90.0170.07725.01
5.6.80.0100.04724.37
5.6.70.0200.06324.27
5.6.60.0170.04724.40
5.6.50.0070.08024.45
5.6.40.0100.06724.32
5.6.30.0070.07024.32
5.6.20.0170.07724.34
5.6.10.0130.06724.34
5.6.00.0030.09324.39
5.5.380.0130.07721.92
5.5.370.0030.08321.88
5.5.360.0200.07321.76
5.5.350.0200.07721.97
5.5.340.0030.08722.23
5.5.330.0170.05722.13
5.5.320.0070.04722.30
5.5.310.0030.04322.29
5.5.300.0100.03322.13
5.5.290.0070.04022.42
5.5.280.0170.04322.45
5.5.270.0130.07322.11
5.5.260.0030.09322.12
5.5.250.0130.07722.10
5.5.240.0100.08021.77
5.5.230.0130.08021.85
5.5.220.0070.08021.59
5.5.210.0100.04721.86
5.5.200.0070.04021.83
5.5.190.0100.08721.74
5.5.180.0100.07721.58
5.5.160.0130.08021.57
5.5.150.0030.08721.57
5.5.140.0130.07321.73
5.5.130.0070.08721.83
5.5.120.0070.08021.77
5.5.110.0130.07321.75
5.5.100.0230.07021.51
5.5.90.0070.07021.73
5.5.80.0000.05021.38
5.5.70.0070.06021.53
5.5.60.0070.08021.69
5.5.50.0100.07721.71
5.5.40.0100.07321.46
5.5.30.0130.07321.66
5.5.20.0000.08721.45
5.5.10.0130.07721.63
5.5.00.0070.09021.55
5.4.450.0170.06323.78
5.4.440.0070.04723.70
5.4.430.0070.08023.59
5.4.420.0070.08723.62
5.4.410.0070.05323.67
5.4.400.0200.03723.24
5.4.390.0100.07723.42
5.4.380.0170.07023.35
5.4.370.0070.10323.34
5.4.360.0030.06323.27
5.4.350.0030.08723.50
5.4.340.0100.07723.45
5.4.320.0070.08023.45
5.4.310.0070.08323.36
5.4.300.0100.08023.45
5.4.290.0100.08023.41
5.4.280.0170.07723.22
5.4.270.0030.08723.31
5.4.260.0130.04323.19
5.4.250.0030.07323.27
5.4.240.0070.08023.28
5.4.230.0100.07723.19
5.4.220.0070.08723.41
5.4.210.0030.08023.45
5.4.200.0130.05023.29
5.4.190.0200.06723.24
5.4.180.0270.04323.40
5.4.170.0070.07723.29
5.4.160.0000.08723.43
5.4.150.0270.06323.48
5.4.140.0070.08720.77
5.4.130.0130.07320.74
5.4.120.0070.04720.53
5.4.110.0070.08020.80
5.4.100.0030.08020.56
5.4.90.0070.07320.62
5.4.80.0070.07320.60
5.4.70.0100.07320.74
5.4.60.0030.07020.53
5.4.50.0070.07320.54
5.4.40.0100.07720.76
5.4.30.0100.07020.71
5.4.20.0130.07320.49
5.4.10.0170.06720.78
5.4.00.0130.07020.08
5.3.290.0100.08320.44
5.3.280.0070.08320.23
5.3.270.0070.08320.15
5.3.260.0070.05720.37
5.3.250.0070.07720.14
5.3.240.0070.05320.13
5.3.230.0030.05320.22
5.3.220.0070.05020.21
5.3.210.0170.07720.34
5.3.200.0130.07320.20
5.3.190.0070.07720.17
5.3.180.0130.07720.06
5.3.170.0130.06320.34
5.3.160.0100.07320.19
5.3.150.0100.04320.24
5.3.140.0130.07320.16
5.3.130.0100.05720.36
5.3.120.0030.08320.15
5.3.110.0100.07020.31
5.3.100.0170.06719.58
5.3.90.0070.07719.55
5.3.80.0070.08019.54
5.3.70.0130.08319.65
5.3.60.0070.08019.55
5.3.50.0070.07319.66
5.3.40.0030.08319.66
5.3.30.0100.08019.54
5.3.20.0130.07719.25
5.3.10.0100.06019.21
5.3.00.0070.08319.27
5.2.170.0130.06716.73
5.2.160.0000.07016.81
5.2.150.0070.07316.73
5.2.140.0000.07016.70
5.2.130.0100.06716.68
5.2.120.0100.06316.76
5.2.110.0030.07316.74
5.2.100.0070.07716.68
5.2.90.0070.05716.74
5.2.80.0130.06716.67
5.2.70.0030.07016.83
5.2.60.0000.07716.60
5.2.50.0070.06316.57
5.2.40.0030.06016.53
5.2.30.0100.07316.52
5.2.20.0130.06316.59
5.2.10.0100.06716.63
5.2.00.0070.06716.40
5.1.60.0030.06717.38
5.1.50.0070.06017.31
5.1.40.0130.03017.34
5.1.30.0000.04717.76
5.1.20.0000.07017.86
5.1.10.0070.06017.52
5.1.00.0130.05017.46
5.0.50.0070.06015.93
5.0.40.0000.06715.87
5.0.30.0230.06015.70
5.0.20.0100.05015.76
5.0.10.0030.04015.57
5.0.00.0070.04315.89
4.4.90.0070.03013.37
4.4.80.0100.04713.33
4.4.70.0000.05013.34
4.4.60.0030.05013.35
4.4.50.0070.04713.20
4.4.40.0070.07013.34
4.4.30.0070.05013.20
4.4.20.0070.02313.25
4.4.10.0100.04313.34
4.4.00.0030.05713.30
4.3.110.0100.04013.23
4.3.100.0070.04713.14
4.3.90.0100.04313.30
4.3.80.0070.06713.24
4.3.70.0070.04013.32
4.3.60.0070.04713.32
4.3.50.0070.04013.30
4.3.40.0030.05713.10
4.3.30.0030.05311.98
4.3.20.0000.05311.81
4.3.10.0000.04711.87
4.3.00.0170.02711.90

preferences:
35.58 ms | 401 KiB | 5 Q