3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('hhvm.enable_zend_sorting', 0); define("thisIsVeryBigKeyName0",0); define("thisIsVeryBigKeyName1",1); $a=array(); for ($n=0;$n<100000;$n++){ $a[]=array(thisIsVeryBigKeyName0=>0,thisIsVeryBigKeyName1=>1); } foreach ($a as $a2){ $test=$a2[thisIsVeryBigKeyName0].$a2[thisIsVeryBigKeyName1]; }

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.0460.03640.43
8.3.50.0340.03340.25
8.3.40.0340.02442.37
8.3.30.0210.04842.63
8.3.20.0070.02743.94
8.3.10.0180.02145.31
8.3.00.0100.01043.58
8.2.180.0310.03740.21
8.2.170.0400.03042.61
8.2.160.0300.03344.31
8.2.150.0180.01542.49
8.2.140.0120.02243.18
8.2.130.0070.01844.52
8.2.120.0230.01740.89
8.2.110.0220.01343.22
8.2.100.0320.02640.84
8.2.90.0230.00841.96
8.2.80.0100.02040.25
8.2.70.0140.02440.50
8.2.60.0100.02340.68
8.2.50.0170.02140.63
8.2.40.0160.01641.45
8.2.30.0130.02740.86
8.2.20.0160.01340.50
8.2.10.0140.01740.85
8.2.00.0100.02040.96
8.1.280.0160.03558.52
8.1.270.0130.01644.34
8.1.260.0110.01145.95
8.1.250.0170.00348.05
8.1.240.0100.01047.86
8.1.230.0240.00744.77
8.1.220.0030.01643.27
8.1.210.0100.01043.04
8.1.200.0190.00342.71
8.1.190.0100.01042.72
8.1.180.0200.00043.15
8.1.170.0040.01844.29
8.1.160.0030.01647.50
8.1.150.0070.01344.36
8.1.140.0150.00343.09
8.1.130.0100.01043.27
8.1.120.0180.00042.95
8.1.110.0130.00642.93
8.1.100.0170.00343.02
8.1.90.0130.00642.91
8.1.80.0060.01242.96
8.1.70.0120.00642.98
8.1.60.0090.01242.97
8.1.50.0060.01543.04
8.1.40.0140.00742.89
8.1.30.0140.00743.07
8.1.20.0090.01243.09
8.1.10.0070.03356.75
8.1.00.0350.02556.79
8.0.300.0200.01656.57
8.0.290.0190.01655.91
8.0.280.0130.02257.62
8.0.270.0160.01956.43
8.0.260.0220.01156.53
8.0.250.0200.01455.96
8.0.240.0220.01356.10
8.0.230.0130.02356.00
8.0.220.0160.01655.95
8.0.210.0140.02456.08
8.0.200.0130.02356.08
8.0.190.0130.02655.92
8.0.180.0100.02756.04
8.0.170.0200.02056.11
8.0.160.0140.02555.96
8.0.150.0190.01956.06
8.0.140.0190.01956.01
8.0.130.0190.01652.54
8.0.120.0200.02355.97
8.0.110.0100.02955.98
8.0.100.0230.01655.88
8.0.90.0210.01855.98
8.0.80.0430.05055.95
8.0.70.0170.02155.98
8.0.60.0210.01755.90
8.0.50.0210.01855.96
8.0.30.0530.04756.17
8.0.20.0520.05756.28
8.0.10.0200.02056.18
8.0.00.0480.04555.88
7.4.330.0070.02552.81
7.4.320.0130.02455.74
7.4.300.0160.02255.52
7.4.290.0200.02055.61
7.4.280.0350.02555.75
7.4.270.0130.03255.73
7.4.260.0130.02955.74
7.4.250.0220.02255.59
7.4.240.0100.03155.57
7.4.230.0070.03155.81
7.4.220.0490.05255.65
7.4.210.0450.05355.56
7.4.200.0100.02955.46
7.4.160.0350.05555.69
7.4.150.0360.05955.64
7.4.140.0440.07555.69
7.4.130.0430.05655.57
7.4.120.0440.06155.79
7.4.110.0380.05855.67
7.4.100.0390.06255.66
7.4.90.0510.04555.73
7.4.80.0500.08055.56
7.4.70.0400.06055.60
7.4.60.0410.05555.52
7.4.50.0100.01955.66
7.4.40.0520.04855.70
7.4.30.0390.06455.77
7.4.00.0200.03754.00
7.3.330.0110.02552.33
7.3.320.0280.01852.34
7.3.310.0220.01955.34
7.3.300.0130.02355.28
7.3.290.0280.05955.43
7.3.280.0400.06055.35
7.3.270.0460.05955.66
7.3.260.0540.05455.36
7.3.250.0460.05555.57
7.3.240.0420.05255.26
7.3.230.0570.04355.70
7.3.210.0450.05555.41
7.3.200.0450.08355.32
7.3.190.0340.06155.65
7.3.180.0330.06055.43
7.3.170.0460.07555.57
7.3.160.0490.06555.46
7.2.330.0460.05055.77
7.2.320.0450.07655.80
7.2.310.0490.08256.00
7.2.300.0600.05355.61
7.2.290.0680.05255.97
7.2.00.0490.03559.52
7.1.100.9990.04055.70
7.1.70.0810.04457.34
7.1.60.0000.04657.50
7.1.50.0460.05956.96
7.1.00.0100.11762.54
7.0.200.0170.05657.03
7.0.140.0070.11362.32
7.0.60.0330.10759.27
7.0.50.0230.08357.03
7.0.40.0170.14023.81
7.0.30.0500.10323.67
7.0.20.0430.11023.79
7.0.10.0600.11323.62
7.0.00.0100.13323.54
5.6.210.0270.14377.46
5.6.200.0200.18075.01
5.6.190.0230.18377.41
5.6.180.0300.18777.07
5.6.170.0470.14777.28
5.6.160.0400.16077.21
5.6.150.0170.14774.95
5.6.140.0230.14775.07
5.6.130.0170.16775.09
5.6.120.0200.17777.91
5.6.110.0270.17777.81
5.6.100.0300.19377.96
5.6.90.0370.17378.02
5.6.80.0330.16077.28
5.6.70.4630.12377.42
5.5.350.0230.14077.33
5.5.340.0270.17774.76
5.5.330.0400.12077.09
5.5.320.0530.15776.98
5.5.310.0570.15777.08
5.5.300.0300.18774.88
5.5.290.0270.18074.80
5.5.280.0130.19377.61
5.5.270.0400.17777.76
5.5.260.0570.15777.80
5.5.250.0170.19377.57
5.5.240.0370.16077.16
5.4.450.1070.19776.48
5.4.440.1430.20376.25
5.4.430.1570.27775.94
5.4.420.1270.18776.12
5.4.410.0830.19776.14
5.4.400.1300.18075.85
5.4.390.0470.23075.59
5.4.380.0470.20775.61
5.4.370.0470.21375.63
5.4.360.0400.24775.60
5.4.350.0700.21075.55
5.4.340.0470.20775.42
5.4.320.0330.23375.46
5.4.310.0370.21075.41
5.4.300.0530.27075.58
5.4.290.0430.19375.41
5.4.280.0600.27775.59
5.4.270.0730.25375.41
5.4.260.0470.22775.56
5.4.250.0570.25775.54
5.4.240.0500.25375.59
5.4.230.0730.24775.59
5.4.220.0500.20075.48
5.4.210.0600.19375.48
5.4.200.0600.19073.37
5.4.190.0430.24075.36
5.4.180.0730.24375.43
5.4.170.0500.21075.61
5.4.160.0600.22375.61
5.4.150.0330.26375.52
5.4.140.0430.19073.13
5.4.130.0530.17373.14
5.4.120.0430.20773.26
5.4.110.0300.21773.16
5.4.100.0630.19773.08
5.4.90.0700.19372.99
5.4.80.0670.20373.09
5.4.70.0370.21073.05
5.4.60.0430.19373.00
5.4.50.0770.24073.09
5.4.40.0400.27073.08
5.4.30.0570.21773.18
5.4.20.0470.21773.06
5.4.10.0500.20773.21
5.4.00.0500.27372.53
5.3.290.0430.22070.65
5.3.280.0630.25770.54
5.3.270.0430.24770.63
5.3.260.0500.22370.52
5.3.250.0130.27070.57
5.3.240.0630.21370.55
5.3.230.0300.23770.56
5.3.220.0500.21770.46
5.3.210.0430.23070.47
5.3.200.0530.21770.62
5.3.190.0430.23770.62
5.3.180.0600.23370.60
5.3.170.0600.22770.54
5.3.160.0370.24370.64
5.3.150.0430.27370.60
5.3.140.0470.25770.52
5.3.130.0430.23770.54
5.3.120.0370.24070.50
5.3.110.0430.23770.49
5.3.100.0470.23370.02
5.3.90.0570.24069.98
5.3.80.0470.26369.86
5.3.70.0430.26069.91
5.3.60.0330.25369.93
5.3.50.0730.27070.52
5.3.40.0570.28769.83
5.3.30.0500.27769.80
5.3.20.0600.27369.52
5.3.10.0400.57769.48
5.3.00.0400.51369.54
5.2.170.0570.22364.54
5.2.160.0470.25064.47
5.2.150.0400.23064.63
5.2.140.0330.27364.50
5.2.130.0370.21064.58
5.2.120.0430.29064.46
5.2.110.0730.23364.59
5.2.100.0530.19364.43
5.2.90.0530.23764.51
5.2.80.0500.26764.50
5.2.70.0470.20064.60
5.2.60.0530.24764.45
5.2.50.0400.23764.39
5.2.40.0600.23764.34
5.2.30.0730.29764.39
5.2.20.0570.21764.37
5.2.10.0270.21064.41
5.2.00.0430.29364.18
5.1.60.0630.28380.81
5.1.50.0670.23780.79
5.1.40.0600.22080.88
5.1.30.0400.27081.19
5.1.20.0700.34381.22
5.1.10.0500.25081.06
5.1.00.0530.29080.88
5.0.50.0500.29379.34
5.0.40.0700.27079.27
5.0.30.0530.33779.21
5.0.20.0430.36779.03
5.0.10.0730.39379.01
5.0.00.0500.35079.07
4.4.90.0600.34376.85
4.4.80.0730.32776.84
4.4.70.0400.31376.81
4.4.60.0530.34376.80
4.4.50.0570.27076.86
4.4.40.0500.30776.82
4.4.30.0600.38776.83
4.4.20.0330.28376.87
4.4.10.0400.35376.90
4.4.00.0600.33076.83
4.3.110.0530.38076.75
4.3.100.0570.31776.75
4.3.90.0600.27776.71
4.3.80.0500.32076.79
4.3.70.0530.32376.75
4.3.60.0470.46376.71
4.3.50.0470.36376.73
4.3.40.0570.35776.78
4.3.30.0600.41075.50
4.3.20.0430.30375.45
4.3.10.0570.36075.39
4.3.00.0170.15775.34

preferences:
39.51 ms | 401 KiB | 5 Q