3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 1000000; $time = microtime(true); $items = array(); for ($i = 0; $i < $count; $i++) { $items[] = array(); } $spentTime = microtime(true) - $time; echo 'create array test took ' . 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.1140.04250.61
7.3.00.0720.03950.50
7.2.130.0880.04950.48
7.2.120.0830.03750.69
7.2.110.1520.03650.72
7.2.100.1300.03950.75
7.2.90.1000.04150.55
7.2.80.1410.05350.43
7.2.70.1580.05550.86
7.2.60.1410.05150.66
7.2.50.1760.04150.43
7.2.40.1770.03750.59
7.2.30.0870.03750.59
7.2.20.1010.03550.47
7.2.10.0890.04550.78
7.2.00.0260.03651.96
7.1.250.1450.06849.51
7.1.70.0030.03351.22
7.1.60.0200.05951.39
7.1.50.0460.04234.59
7.1.00.0070.11756.25
7.0.201.3170.02758.86
7.0.140.0100.11765.93
7.0.100.0970.11363.95
7.0.90.0970.10064.08
7.0.80.0800.11363.79
7.0.70.1770.06363.79
7.0.60.0330.08063.87
7.0.50.1200.06764.35
7.0.40.0700.10736.03
7.0.30.0170.09736.02
7.0.20.1130.08736.11
7.0.10.0800.07336.00
7.0.00.0400.08735.94
5.6.280.0230.15385.47
5.6.250.0270.16785.11
5.6.240.0300.15085.14
5.6.230.0230.12085.00
5.6.220.0270.15385.12
5.6.210.0470.13785.07
5.6.200.0170.14785.70
5.6.190.0230.15385.61
5.6.180.0200.16385.58
5.6.170.0230.15385.53
5.6.160.0370.14785.63
5.6.150.0400.13385.55
5.6.140.0300.15085.73
5.6.130.0430.14785.72
5.6.120.0370.16085.72
5.6.110.0470.15785.57
5.6.100.0300.13385.56
5.6.90.0400.15385.57
5.6.80.0270.14784.90
5.6.70.0230.13384.97
5.6.60.0230.10084.81
5.6.50.0470.14385.12
5.6.40.0330.15084.85
5.6.30.0200.13085.02
5.6.20.0200.13785.02
5.6.10.0270.14784.92
5.6.00.0300.12084.94
5.5.380.0370.13784.86
5.5.370.0300.14384.92
5.5.360.0400.15084.99
5.5.350.0330.15084.92
5.5.340.0300.14785.33
5.5.330.0230.13785.39
5.5.320.0200.13385.46
5.5.310.0370.11085.46
5.5.300.0170.15085.43
5.5.290.0170.13085.20
5.5.280.0300.15385.20
5.5.270.0230.13385.38
5.5.260.0400.15085.35
5.5.250.0400.16085.23
5.5.240.0270.16084.85
5.5.230.0370.14084.82
5.5.220.0230.12084.66
5.5.210.0370.13784.85
5.5.200.0370.13084.73
5.5.190.0230.11784.80
5.5.180.0400.12384.84
5.5.160.0130.11084.77
5.5.150.0400.15084.73
5.5.140.0330.13784.75
5.5.130.0230.12084.80
5.5.120.0200.10784.73
5.5.110.0200.16784.73
5.5.100.0270.13784.49
5.5.90.0300.12784.63
5.5.80.0330.14784.63
5.5.70.0370.14084.68
5.5.60.0370.16384.64
5.5.50.0430.14084.59
5.5.40.0200.10784.66
5.5.30.0300.14784.67
5.5.20.0470.14784.66
5.5.10.0430.10084.56
5.5.00.0230.15784.52
5.4.450.0270.11083.72
5.4.440.0430.14783.77
5.4.430.0370.15083.85
5.4.420.0330.14083.62
5.4.410.0230.11083.51
5.4.400.0330.13083.47
5.4.390.0270.11383.53
5.4.380.0330.15783.59
5.4.370.0330.12083.39
5.4.360.0300.12783.45
5.4.350.0300.15383.53
5.4.340.0270.14783.44
5.4.320.0130.11083.30
5.4.310.0230.11783.31
5.4.300.0170.09383.48
5.4.290.0400.15783.53
5.4.280.0730.08083.53
5.4.270.0130.14783.29
5.4.260.0370.13383.53
5.4.250.0170.14783.63
5.4.240.0300.15383.45
5.4.230.0330.11083.59
5.4.220.0300.09383.54
5.4.210.0430.13383.38
5.4.200.0200.15383.44
5.4.190.0370.14383.52
5.4.180.0270.15083.27
5.4.170.0530.12083.30
5.4.160.0100.11783.42
5.4.150.0430.12383.52
5.4.140.0500.13080.61
5.4.130.0370.14080.84
5.4.120.0300.14380.76
5.4.110.0200.15780.94
5.4.100.0170.12080.86
5.4.90.0430.13780.70
5.4.80.0130.14780.79
5.4.70.0470.13380.80
5.4.60.0170.14780.72
5.4.50.0130.10080.76
5.4.40.0400.11780.77
5.4.30.0430.12780.80
5.4.20.0300.13780.73
5.4.10.0270.17080.71
5.4.00.0200.12080.22
5.3.290.0270.15077.73
5.3.280.0370.13777.58
5.3.270.0230.17077.68
5.3.260.0270.10777.64
5.3.250.0330.12077.53
5.3.240.0270.15377.52
5.3.230.0270.12777.51
5.3.220.0200.15077.62
5.3.210.0230.16077.66
5.3.200.0200.17377.46
5.3.190.0330.13377.59
5.3.180.0300.13077.65
5.3.170.0230.14378.25
5.3.160.0300.11777.63
5.3.150.0330.13077.50
5.3.140.0270.09077.61
5.3.130.0330.14377.59
5.3.120.0230.11077.62
5.3.110.0230.14777.43
5.3.100.0100.12377.06
5.3.90.0370.12076.96
5.3.80.0330.09076.86
5.3.70.0300.14076.98
5.3.60.0170.12376.98
5.3.50.0270.13776.86
5.3.40.0230.11776.79
5.3.30.0130.10776.88
5.3.20.0100.10076.57
5.3.10.0130.08776.63
5.3.00.0100.10076.55
5.2.170.0370.08074.71
5.2.160.0270.11074.53
5.2.150.0330.10374.63
5.2.140.0300.10374.68
5.2.130.0200.08774.69
5.2.120.0230.08774.72
5.2.110.0230.09374.41
5.2.100.0200.10074.57
5.2.90.0270.13374.57
5.2.80.0200.11374.64
5.2.70.0270.10774.66
5.2.60.0170.09074.52
5.2.50.0270.10374.67
5.2.40.0300.09774.54
5.2.30.0270.10374.68
5.2.20.0130.11774.51
5.2.10.0230.07774.54
5.2.00.0600.290264.29
5.1.60.1770.527383.97
5.1.50.1970.627383.95
5.1.40.2230.613383.78
5.1.30.2400.530384.27
5.1.20.2170.610384.29
5.1.10.2500.730383.77
5.1.00.1970.597383.85
5.0.50.2330.813382.41
5.0.40.2630.910382.22
5.0.30.2070.677382.22
5.0.20.1830.760382.02
5.0.10.3231.113382.05
5.0.00.2870.973381.99
4.4.90.2830.790379.88
4.4.80.2830.850379.75
4.4.70.2570.743379.91
4.4.60.2070.740379.93
4.4.50.2330.760379.91
4.4.40.1730.787379.92
4.4.30.2130.817379.86
4.4.20.1900.850379.91
4.4.10.1730.807379.89
4.4.00.2030.777379.85
4.3.110.1630.757379.84
4.3.100.2770.690379.83
4.3.90.2500.863379.75
4.3.80.1700.780379.72
4.3.70.2330.823379.75
4.3.60.2670.790379.79
4.3.50.2470.847379.86
4.3.40.2270.823379.74
4.3.30.2330.910378.54
4.3.20.2370.880378.52
4.3.10.2700.780378.46
4.3.00.1700.803378.50

preferences:
60.27 ms | 401 KiB | 5 Q