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(0=>0,1=>1); } for ($n=0;$n<2;$n++){ foreach ($a as $a2){ $test=$a2[0].$a2[1]; } }

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.0190.01619.13
8.3.50.0100.02622.89
8.3.40.0170.02421.20
8.3.30.0100.03521.54
8.3.20.0100.02522.71
8.3.10.0090.00924.35
8.3.00.0060.00922.76
8.2.180.0220.02219.13
8.2.170.0070.02422.96
8.2.160.0040.02224.30
8.2.150.0060.01224.18
8.2.140.0030.01324.66
8.2.130.0060.00926.16
8.2.120.0120.00321.88
8.2.110.0060.01624.35
8.2.100.0060.01920.25
8.2.90.0060.01621.67
8.2.80.0070.01420.25
8.2.70.0000.02320.13
8.2.60.0030.02320.51
8.2.50.0120.00920.00
8.2.40.0070.01322.04
8.2.30.0030.01820.38
8.2.20.0120.00920.09
8.2.10.0060.01520.36
8.2.00.0090.01220.11
8.1.280.0100.02825.92
8.1.270.0100.01024.00
8.1.260.0040.01326.35
8.1.250.0100.01328.09
8.1.240.0100.01330.04
8.1.230.0070.02023.21
8.1.220.0100.01322.52
8.1.210.0000.02322.41
8.1.200.0090.01522.10
8.1.190.0040.01822.23
8.1.180.0040.01822.29
8.1.170.0060.01523.59
8.1.160.0070.01426.95
8.1.150.0040.01823.55
8.1.140.0030.01922.31
8.1.130.0070.01422.71
8.1.120.0090.01322.37
8.1.110.0030.02022.23
8.1.100.0060.01522.34
8.1.90.0030.02022.32
8.1.80.0040.01822.24
8.1.70.0040.01822.35
8.1.60.0060.01922.46
8.1.50.0060.01822.39
8.1.40.0060.01922.37
8.1.30.0030.02222.45
8.1.20.0030.02122.48
8.1.10.0030.02322.25
8.1.00.0060.01922.26
8.0.300.0060.01522.03
8.0.290.0040.01921.50
8.0.280.0000.02223.19
8.0.270.0040.01921.99
8.0.260.0070.01421.96
8.0.250.0000.02121.62
8.0.240.0100.01421.61
8.0.230.0060.01621.73
8.0.220.0030.01921.71
8.0.210.0060.01621.50
8.0.200.0000.02121.60
8.0.190.0100.01421.63
8.0.180.0030.02121.66
8.0.170.0030.02121.57
8.0.160.0040.02121.66
8.0.150.0030.02021.59
8.0.140.0040.01921.54
8.0.130.0030.01718.14
8.0.120.0100.01421.63
8.0.110.0080.01521.67
8.0.100.0130.01021.44
8.0.90.0030.02021.63
8.0.80.0030.03621.70
8.0.70.0030.01921.57
8.0.60.0100.01321.62
8.0.50.0060.01621.62
8.0.30.0170.03621.75
8.0.20.0200.02721.81
8.0.10.0060.01621.69
8.0.00.0160.02521.46
7.4.330.0000.02020.70
7.4.320.0070.01421.33
7.4.300.0030.01721.18
7.4.290.0000.02321.29
7.4.280.0100.02021.23
7.4.270.0070.01521.25
7.4.260.0070.01721.19
7.4.250.0000.02421.14
7.4.240.0060.01721.29
7.4.230.0070.01621.17
7.4.220.0060.03921.30
7.4.210.0100.02921.29
7.4.200.0070.01521.30
7.4.160.0140.02721.22
7.4.150.0160.04421.21
7.4.140.0190.02621.20
7.4.130.0080.03421.28
7.4.120.0140.03521.21
7.4.110.0160.02821.28
7.4.100.0150.03421.31
7.4.90.0120.03121.26
7.4.80.0160.02521.19
7.4.70.0160.05121.18
7.4.60.0130.02921.34
7.4.50.0070.02420.87
7.4.40.0200.02621.22
7.4.30.0160.03921.41
7.4.10.0170.04021.13
7.4.00.0120.03520.41
7.3.330.0060.01517.89
7.3.320.0130.01617.98
7.3.310.0040.02120.93
7.3.300.0030.02021.03
7.3.290.0070.01521.04
7.3.280.0110.03521.02
7.3.270.0070.03821.25
7.3.260.0200.04321.20
7.3.250.0150.03121.19
7.3.240.0100.03321.18
7.3.230.0210.03021.10
7.3.210.0130.02921.28
7.3.200.0040.04120.97
7.3.190.0220.01921.39
7.3.180.0190.02521.25
7.3.170.0060.03821.27
7.3.160.0190.04421.07
7.3.130.0060.04521.04
7.3.120.0030.04721.08
7.3.110.0070.03321.26
7.3.100.0130.02920.97
7.3.90.0030.03821.21
7.3.80.0070.03121.21
7.3.70.0190.02920.95
7.3.60.0100.03221.08
7.3.50.0100.02521.05
7.3.40.0100.03020.96
7.3.30.0070.04821.13
7.3.20.0040.03223.82
7.3.10.0070.02824.13
7.3.00.0130.02224.03
7.2.330.0140.03121.57
7.2.320.0190.02521.27
7.2.310.0220.02321.29
7.2.300.0030.04021.47
7.2.290.0100.03421.52
7.2.260.0130.03321.36
7.2.250.0200.04121.39
7.2.240.0060.03221.39
7.2.230.0100.04721.22
7.2.220.0160.04121.38
7.2.210.0140.02521.53
7.2.200.0030.04121.40
7.2.190.0100.03621.40
7.2.180.0110.02821.28
7.2.170.0100.03421.28
7.2.160.0070.04421.37
7.2.150.0100.02724.25
7.2.140.0100.03024.26
7.2.130.0130.03524.17
7.2.120.0100.03924.34
7.2.110.0030.04124.24
7.2.100.0100.02924.24
7.2.90.0170.02324.40
7.2.80.0070.03524.16
7.2.70.0140.02724.33
7.2.60.0190.03324.31
7.2.50.0070.02724.26
7.2.40.0160.02624.34
7.2.30.0000.03724.16
7.2.20.0100.03424.37
7.2.10.0070.03424.27
7.2.00.0060.03124.74
7.1.330.0130.05923.29
7.1.320.0070.05623.07
7.1.310.0070.04822.97
7.1.300.0060.04823.20
7.1.290.0030.06623.19
7.1.280.0100.06123.18
7.1.270.0030.04823.33
7.1.260.0060.04523.29
7.1.250.0100.04623.13
7.1.240.0140.04123.19
7.1.230.0100.05123.16
7.1.220.0070.05923.09
7.1.210.0030.05323.19
7.1.200.0060.05123.28
7.1.190.0070.04923.22
7.1.180.0100.04323.09
7.1.170.0100.04223.17
7.1.160.0130.05923.09
7.1.150.0160.05323.25
7.1.140.0070.05723.22
7.1.130.0140.05923.28
7.1.120.0130.05523.33
7.1.110.0060.05123.23
7.1.100.0820.04222.34
7.1.90.0030.04723.18
7.1.80.0000.06823.30
7.1.70.0070.04223.03
7.1.60.0130.04823.25
7.1.50.0050.03923.09
7.1.40.0070.05623.37
7.1.30.0150.04723.18
7.1.20.0070.07523.22
7.1.10.0110.05623.05
7.1.00.0090.08825.81
7.0.330.0230.10457.24
7.0.320.0260.08657.28
7.0.310.0130.08057.29
7.0.300.0070.10757.08
7.0.290.0360.11857.27
7.0.280.0170.08657.21
7.0.270.0170.10357.00
7.0.260.0390.08257.31
7.0.250.0130.09757.31
7.0.240.0330.06657.30
7.0.230.0160.06957.34
7.0.220.0300.10657.36
7.0.210.0230.07557.20
7.0.200.3130.06555.78
7.0.190.0140.09557.20
7.0.180.0200.08857.41
7.0.170.0230.08257.28
7.0.160.0160.08257.50
7.0.150.0260.06357.47
7.0.140.0180.09059.68
7.0.130.0140.07557.30
7.0.120.0190.07457.23
7.0.110.0100.08257.30
7.0.100.2570.11058.28
7.0.90.4170.10158.26
7.0.80.0350.11858.28
7.0.70.0200.13258.27
7.0.60.2160.12758.21
7.0.50.3080.12258.33
7.0.40.0520.10322.39
7.0.30.0600.11022.51
7.0.20.0670.12622.38
7.0.10.0550.12622.32
7.0.00.0780.11022.30
5.6.400.0200.23373.00
5.6.390.0460.22172.80
5.6.380.0300.23673.15
5.6.370.0230.21572.76
5.6.360.0270.24772.96
5.6.350.0400.18872.95
5.6.340.0300.21172.99
5.6.330.0430.20072.49
5.6.320.0270.21473.01
5.6.310.0500.17173.14
5.6.300.0330.20173.05
5.6.290.0300.21073.02
5.6.280.0200.23075.29
5.6.270.0230.20273.07
5.6.260.0430.19772.71
5.6.250.0270.21075.09
5.6.240.0250.21375.17
5.6.230.0280.22775.29
5.6.220.0300.21675.38
5.6.210.0130.23975.23
5.6.200.0380.21675.46
5.6.190.0350.20375.45
5.6.180.0380.22175.37
5.6.170.0380.21475.35
5.6.160.0330.20975.45
5.6.150.0220.24075.51
5.6.140.0250.21875.58
5.6.130.0280.23175.44
5.6.120.0380.23675.42
5.6.110.0310.20875.48
5.6.100.0300.22075.46
5.6.90.0250.21175.26
5.6.80.0200.21375.11
5.6.70.0400.19174.99
5.6.60.0370.21275.05
5.6.50.0230.20575.20
5.6.40.0270.19075.02
5.6.30.0230.22275.14
5.6.20.0220.19475.00
5.6.10.0330.19375.08
5.6.00.0300.20375.02
5.5.380.0200.22075.08
5.5.370.0270.21175.20
5.5.360.0370.20975.04
5.5.350.0300.22875.05
5.5.340.0320.18875.28
5.5.330.0350.22675.35
5.5.320.0200.22075.30
5.5.310.0270.21275.38
5.5.300.0360.19975.36
5.5.290.0270.21775.45
5.5.280.0180.20275.27
5.5.270.0420.20075.35
5.5.260.0380.20675.28
5.5.250.0270.23775.08
5.5.240.0300.22375.02
5.5.230.0220.23874.96
5.5.220.0270.19375.08
5.5.210.0150.19674.89
5.5.200.0250.21274.95
5.5.190.0260.18574.84
5.5.180.0230.20474.92
5.5.170.0330.23372.95
5.5.160.0280.18075.02
5.5.150.0180.18875.06
5.5.140.0230.19575.01
5.5.130.0270.19174.88
5.5.120.0200.18074.93
5.5.110.0270.18474.98
5.5.100.0270.19374.75
5.5.90.0400.20974.89
5.5.80.0330.21074.96
5.5.70.0250.22874.93
5.5.60.0330.21274.75
5.5.50.0250.21674.92
5.5.40.0270.22374.98
5.5.30.0280.20974.94
5.5.20.0280.24074.99
5.5.10.0280.20474.88
5.5.00.0380.19374.96
5.4.450.0280.21572.81
5.4.440.0490.19372.85
5.4.430.0350.21872.84
5.4.420.0470.17972.89
5.4.410.0250.21672.75
5.4.400.0320.21572.53
5.4.390.0340.23372.54
5.4.380.0380.20872.55
5.4.370.0250.21972.70
5.4.360.0230.18972.77
5.4.350.0220.20972.58
5.4.340.0230.20572.71
5.4.330.0360.24069.56
5.4.320.0330.16972.71
5.4.310.0210.17472.62
5.4.300.0250.21072.67
5.4.290.0200.20972.73
5.4.280.0230.19972.49
5.4.270.0320.19372.51
5.4.260.0330.16472.86
5.4.250.0220.20372.75
5.4.240.0250.22372.64
5.4.230.0270.19572.62
5.4.220.0260.22572.73
5.4.210.0280.19372.61
5.4.200.0250.21872.49
5.4.190.0250.20872.71
5.4.180.0250.18472.45
5.4.170.0230.19672.58
5.4.160.0290.19972.72
5.4.150.0220.19972.67
5.4.140.0340.18871.29
5.4.130.0320.21571.28
5.4.120.0300.19871.28
5.4.110.0300.21371.31
5.4.100.0180.21771.33
5.4.90.0320.19771.40
5.4.80.0250.22071.42
5.4.70.0370.20671.47
5.4.60.0350.20371.41
5.4.50.0330.20471.34
5.4.40.0360.19271.33
5.4.30.0270.21571.26
5.4.20.0330.19671.26
5.4.10.0270.21171.34
5.4.00.0300.18970.95
5.3.290.0270.15370.51
5.3.280.0230.22070.52
5.3.270.0230.15770.52
5.3.260.0230.21770.46
5.3.250.0200.17070.45
5.3.240.0400.18070.53
5.3.230.0200.23070.39
5.3.220.0270.20070.50
5.3.210.0200.20770.42
5.3.200.0230.20770.50
5.3.190.0400.18770.49
5.3.180.0270.19770.51
5.3.170.0130.21370.51
5.3.160.0270.15070.39
5.3.150.0300.19070.46
5.3.140.0230.20370.48
5.3.130.0370.20070.48
5.3.120.0330.19770.45
5.3.110.0230.22770.55
5.3.100.0370.21069.89
5.3.90.0200.20370.00
5.3.80.0300.19770.48
5.3.70.0200.19369.95
5.3.60.0230.16069.71
5.3.50.0270.20069.87
5.3.40.0300.21069.73
5.3.30.0130.22769.84
5.3.20.0330.21069.47
5.3.10.0200.50769.56
5.3.00.0200.50069.52
5.2.170.0370.13364.57
5.2.160.0100.16364.98
5.2.150.0230.16364.37
5.2.140.0230.18364.49
5.2.130.0100.19064.25
5.2.120.0200.16764.43
5.2.110.0300.16765.00
5.2.100.0200.17064.37
5.2.90.0270.16764.40
5.2.80.0200.15064.45
5.2.70.0300.16764.52
5.2.60.0100.14364.40
5.2.50.0200.19064.35
5.2.40.0200.20764.28
5.2.30.0100.21064.09
5.2.20.0200.20764.40
5.2.10.0300.19064.16
5.2.00.0230.16364.02
5.1.60.0130.20780.88
5.1.50.0300.18780.63
5.1.40.0270.21780.86
5.1.30.0270.19781.05
5.1.20.0270.20381.00
5.1.10.0370.21380.94
5.1.00.0300.20380.94
5.0.50.0330.23379.41
5.0.40.0200.28079.24
5.0.30.0500.22079.01
5.0.20.0270.24779.07
5.0.10.0200.24779.03
5.0.00.0230.21378.93
4.4.90.0470.21376.82
4.4.80.0270.26076.79
4.4.70.0170.26376.70
4.4.60.0230.21776.82
4.4.50.0300.24076.71
4.4.40.0330.22376.80
4.4.30.0230.24076.73
4.4.20.0400.23776.88
4.4.10.0370.21776.90
4.4.00.0430.25076.77
4.3.110.0200.24776.75
4.3.100.0270.23776.63
4.3.90.0230.22776.68
4.3.80.0170.21376.71
4.3.70.0170.25776.66
4.3.60.0200.24776.73
4.3.50.0200.21776.59
4.3.40.0400.25376.69
4.3.30.0100.26075.39
4.3.20.0230.25375.44
4.3.10.0300.24075.30
4.3.00.0330.22375.32

preferences:
43.66 ms | 401 KiB | 5 Q