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); } 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.0110.01419.70
8.3.50.0180.01123.13
8.3.40.0140.01021.07
8.3.30.0070.01921.61
8.3.20.0040.00822.88
8.3.10.0030.01024.40
8.3.00.0060.00622.81
8.2.180.0120.02219.00
8.2.170.0160.01022.96
8.2.160.0060.01524.02
8.2.150.0070.00724.18
8.2.140.0030.01024.66
8.2.130.0030.00926.16
8.2.120.0040.01121.76
8.2.110.0060.01322.56
8.2.100.0060.01320.34
8.2.90.0000.01520.72
8.2.80.0030.01320.09
8.2.70.0030.01220.43
8.2.60.0030.01320.43
8.2.50.0000.01520.25
8.2.40.0040.01223.10
8.2.30.0060.01320.49
8.2.20.0030.01220.01
8.2.10.0040.01220.34
8.2.00.0040.01121.22
8.1.280.0060.01625.92
8.1.270.0070.00724.73
8.1.260.0040.01126.35
8.1.250.0040.00830.00
8.1.240.0060.01627.86
8.1.230.0070.01425.91
8.1.220.0090.00922.66
8.1.210.0030.01623.86
8.1.200.0000.01722.35
8.1.190.0090.00922.35
8.1.180.0030.01522.13
8.1.170.0030.01323.51
8.1.160.0060.00926.69
8.1.150.0080.00823.70
8.1.140.0000.01624.64
8.1.130.0030.01322.66
8.1.120.0070.01022.22
8.1.110.0070.01022.39
8.1.100.0060.01022.30
8.1.90.0000.01722.38
8.1.80.0030.01322.35
8.1.70.0080.00822.38
8.1.60.0060.01322.52
8.1.50.0090.00922.45
8.1.40.0070.01022.35
8.1.30.0080.01122.46
8.1.20.0060.01322.40
8.1.10.0090.00922.34
8.1.00.0130.00922.32
8.0.300.0060.01024.90
8.0.290.0070.01421.38
8.0.280.0000.01623.19
8.0.270.0030.01322.02
8.0.260.0040.01121.91
8.0.250.0000.01621.54
8.0.240.0040.01121.66
8.0.230.0060.01021.70
8.0.220.0000.01621.59
8.0.210.0030.01321.55
8.0.200.0070.01121.52
8.0.190.0090.00921.61
8.0.180.0060.01321.52
8.0.170.0060.01221.57
8.0.160.0060.01221.64
8.0.150.0070.01021.56
8.0.140.0040.01421.57
8.0.130.0000.01518.10
8.0.120.0060.01221.59
8.0.110.0030.01421.48
8.0.100.0090.00921.62
8.0.90.0040.01521.54
8.0.80.0190.01321.50
8.0.70.0060.01221.59
8.0.60.0030.01421.41
8.0.50.0060.01221.59
8.0.30.0170.02421.70
8.0.20.0150.02921.60
8.0.10.0030.01521.57
8.0.00.0160.01821.55
7.4.330.0100.00320.86
7.4.320.0060.00921.22
7.4.300.0030.01221.11
7.4.290.0030.01321.22
7.4.280.0070.01621.21
7.4.270.0030.01321.21
7.4.260.0030.01321.04
7.4.250.0000.01921.26
7.4.240.0000.01721.16
7.4.230.0070.01021.38
7.4.220.0070.03021.36
7.4.210.0130.01621.25
7.4.200.0090.00921.20
7.4.160.0130.02521.32
7.4.150.0170.02021.20
7.4.140.0160.03521.36
7.4.130.0130.02821.26
7.4.120.0150.02121.31
7.4.110.0190.01621.07
7.4.100.0160.02221.16
7.4.90.0170.01721.22
7.4.80.0120.02321.14
7.4.70.0170.01721.17
7.4.60.0080.02621.20
7.4.50.0000.02321.25
7.4.40.0210.02721.28
7.4.30.0180.02021.23
7.4.00.0120.01219.41
7.3.330.0060.00917.89
7.3.320.0040.01918.03
7.3.310.0060.01221.10
7.3.300.0000.01720.92
7.3.290.0090.02621.04
7.3.280.0200.02021.09
7.3.270.0160.03321.09
7.3.260.0150.02221.10
7.3.250.0190.02321.08
7.3.240.0100.02721.25
7.3.230.0260.02321.04
7.3.210.0140.02221.04
7.3.200.0210.01821.13
7.3.190.0070.02721.32
7.3.180.0130.02021.39
7.3.170.0160.01921.25
7.3.160.0170.03021.31
7.3.10.0100.02021.99
7.3.00.0000.02722.42
7.2.330.0070.03021.28
7.2.320.0130.02621.42
7.2.310.0130.02721.34
7.2.300.0100.02621.54
7.2.290.0250.01821.32
7.2.130.0060.02322.35
7.2.120.0130.02022.12
7.2.110.0130.01622.41
7.2.100.0100.01922.80
7.2.90.0100.02322.34
7.2.80.0070.02022.59
7.2.70.0190.02222.60
7.2.60.0080.01622.60
7.2.50.0190.01922.31
7.2.40.0190.02222.56
7.2.30.0150.02122.63
7.2.20.0030.02422.45
7.2.10.0030.02422.58
7.2.00.0070.02123.64
7.1.250.0000.03521.72
7.1.200.0070.01721.58
7.1.100.0530.02021.57
7.1.70.0000.02022.77
7.1.60.0100.04123.21
7.1.50.0070.04022.76
7.1.00.0030.09728.28
7.0.200.2990.04054.21
7.0.140.0130.09062.39
7.0.60.0270.11359.23
7.0.50.0270.11357.00
7.0.40.0100.08723.46
7.0.30.0500.10723.75
7.0.20.0400.11723.77
7.0.10.0570.09323.63
7.0.00.0200.11723.56
5.6.280.0230.18077.70
5.6.210.0300.10377.59
5.6.200.0330.16075.11
5.6.190.0170.18077.25
5.6.180.0370.15377.24
5.6.170.0400.17777.29
5.6.160.0330.16777.27
5.6.150.0270.16775.07
5.6.140.0230.11074.95
5.6.130.0330.10074.84
5.6.120.0200.12378.04
5.6.110.0200.19078.03
5.6.100.0470.16778.05
5.6.90.0100.16078.02
5.6.80.0300.16377.43
5.6.70.4070.11377.29
5.5.350.0300.14777.36
5.5.340.0170.18374.89
5.5.330.0270.12777.09
5.5.320.0700.14077.00
5.5.310.0430.13077.00
5.5.300.0300.12774.90
5.5.290.0370.17074.89
5.5.280.0300.13777.70
5.5.270.0300.14077.60
5.5.260.0400.13777.81
5.5.250.0370.16377.47
5.5.240.0330.17777.11
5.4.450.0500.18076.12
5.4.440.1270.18076.28
5.4.430.2230.19376.49
5.4.420.1370.21076.26
5.4.410.3000.19776.14
5.4.400.0900.19775.90
5.4.390.0530.19075.48
5.4.380.0500.19775.35
5.4.370.0430.23375.47
5.4.360.0470.18375.60
5.4.350.0400.18775.63
5.4.340.0530.18075.45
5.4.320.0670.17375.62
5.4.310.0330.19075.57
5.4.300.0570.16375.55
5.4.290.0400.18075.58
5.4.280.0430.18775.57
5.4.270.0470.18075.47
5.4.260.0270.19775.62
5.4.250.0730.15075.57
5.4.240.0500.20375.57
5.4.230.0470.17775.53
5.4.220.0500.16775.46
5.4.210.0700.16375.40
5.4.200.0700.25373.31
5.4.190.0800.22775.55
5.4.180.0730.27375.61
5.4.170.0800.26375.55
5.4.160.0300.21075.39
5.4.150.0600.17375.57
5.4.140.0400.18772.97
5.4.130.0330.19372.96
5.4.120.0500.21073.16
5.4.110.0600.23373.26
5.4.100.0600.19372.96
5.4.90.0500.19073.05
5.4.80.0530.26073.11
5.4.70.0500.19073.06
5.4.60.0470.23073.04
5.4.50.0400.21073.09
5.4.40.0470.23773.20
5.4.30.0530.19772.94
5.4.20.0370.20373.11
5.4.10.0530.21373.18
5.4.00.0430.18372.71
5.3.290.0570.18370.71
5.3.280.0500.20070.67
5.3.270.0630.29770.66
5.3.260.0400.19770.56
5.3.250.0430.20370.56
5.3.240.0500.18770.54
5.3.230.0470.23370.66
5.3.220.0730.19770.50
5.3.210.0670.19370.39
5.3.200.0600.29370.65
5.3.190.0400.22370.51
5.3.180.0570.21770.64
5.3.170.0430.22070.63
5.3.160.0600.20770.52
5.3.150.0330.21770.52
5.3.140.0430.21770.50
5.3.130.0470.25370.52
5.3.120.0330.20070.61
5.3.110.0370.21070.46
5.3.100.0630.17069.93
5.3.90.0470.19070.07
5.3.80.0630.20770.60
5.3.70.0370.19370.02
5.3.60.0330.19769.88
5.3.50.0400.20369.80
5.3.40.0430.19369.77
5.3.30.0630.17769.81
5.3.20.0670.25369.60
5.3.10.0430.45369.57
5.3.00.0570.44069.55
5.2.170.0400.20764.47
5.2.160.0500.24764.48
5.2.150.0600.21364.48
5.2.140.0430.24764.54
5.2.130.0430.20364.43
5.2.120.0600.19064.42
5.2.110.0300.18764.42
5.2.100.0500.22064.59
5.2.90.0430.25064.48
5.2.80.0700.22764.41
5.2.70.0500.25064.42
5.2.60.0500.24364.37
5.2.50.0530.25064.39
5.2.40.0500.22364.50
5.2.30.0600.29764.30
5.2.20.0700.20764.36
5.2.10.0570.19764.34
5.2.00.0270.23764.27
5.1.60.0670.26380.89
5.1.50.0500.25380.79
5.1.40.0630.26780.82
5.1.30.0430.25381.09
5.1.20.0430.25081.34
5.1.10.0530.23780.89
5.1.00.0700.23380.87
5.0.50.0370.28779.36
5.0.40.0730.30379.27
5.0.30.0630.28078.97
5.0.20.0430.26079.11
5.0.10.0600.30079.03
5.0.00.0670.27079.31
4.4.90.0470.27376.80
4.4.80.0600.27076.73
4.4.70.0570.25076.79
4.4.60.0630.26076.85
4.4.50.0530.39776.84
4.4.40.0400.29076.81
4.4.30.0770.31776.81
4.4.20.0500.26776.89
4.4.10.0730.23076.86
4.4.00.0700.25376.88
4.3.110.0500.23076.84
4.3.100.0370.33376.70
4.3.90.0570.26076.73
4.3.80.0630.31376.83
4.3.70.0430.32776.67
4.3.60.0470.32376.70
4.3.50.0430.28076.69
4.3.40.0530.25376.74
4.3.30.0370.27775.51
4.3.20.0570.26775.58
4.3.10.0600.24375.46
4.3.00.0300.15775.28

preferences:
47.25 ms | 401 KiB | 5 Q