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.0130.01919.81
8.3.50.0180.01723.10
8.3.40.0160.01020.92
8.3.30.0160.01921.58
8.3.20.0030.01022.66
8.3.10.0090.00624.16
8.3.00.0070.00722.98
8.2.180.0190.01919.00
8.2.170.0140.01422.96
8.2.160.0170.01724.11
8.2.150.0070.00724.18
8.2.140.0110.00424.66
8.2.130.0100.00326.16
8.2.120.0060.00622.69
8.2.110.0040.01523.00
8.2.100.0040.01820.66
8.2.90.0070.01021.90
8.2.80.0070.01020.13
8.2.70.0000.01820.25
8.2.60.0100.01020.53
8.2.50.0040.01420.13
8.2.40.0000.01622.04
8.2.30.0030.02020.43
8.2.20.0030.01320.18
8.2.10.0070.01020.50
8.2.00.0000.01719.98
8.1.280.0170.01325.92
8.1.270.0060.00826.68
8.1.260.0130.00326.35
8.1.250.0090.00628.09
8.1.240.0070.01129.89
8.1.230.0100.01324.20
8.1.220.0000.01922.53
8.1.210.0060.01322.29
8.1.200.0120.00922.10
8.1.190.0100.01022.23
8.1.180.0070.01122.41
8.1.170.0000.01823.65
8.1.160.0000.01826.73
8.1.150.0070.01023.61
8.1.140.0070.01123.13
8.1.130.0070.01022.62
8.1.120.0040.01522.40
8.1.110.0040.01522.24
8.1.100.0030.01522.32
8.1.90.0000.02022.25
8.1.80.0060.01222.39
8.1.70.0040.01522.23
8.1.60.0040.01822.46
8.1.50.0000.02022.43
8.1.40.0030.01722.29
8.1.30.0070.01322.46
8.1.20.0000.01922.50
8.1.10.0070.01422.34
8.1.00.0060.01922.34
8.0.300.0090.00922.10
8.0.290.0090.00921.50
8.0.280.0120.00623.31
8.0.270.0030.01622.03
8.0.260.0000.01622.05
8.0.250.0030.01421.66
8.0.240.0100.01021.68
8.0.230.0040.01421.57
8.0.220.0030.01521.67
8.0.210.0060.01221.58
8.0.200.0040.01421.74
8.0.190.0030.01621.61
8.0.180.0060.01321.52
8.0.170.0000.02021.69
8.0.160.0060.01221.55
8.0.150.0030.01621.62
8.0.140.0060.01321.60
8.0.130.0090.00918.19
8.0.120.0030.01621.52
8.0.110.0000.01921.62
8.0.100.0000.01821.61
8.0.90.0000.01821.65
8.0.80.0150.02521.63
8.0.70.0070.01321.62
8.0.60.0030.01621.49
8.0.50.0040.01621.47
8.0.30.0180.03021.60
8.0.20.0200.02421.81
8.0.10.0030.01721.78
8.0.00.0190.02021.47
7.4.330.0030.01218.13
7.4.320.0060.01221.33
7.4.300.0090.00921.09
7.4.290.0000.01821.31
7.4.280.0090.01421.19
7.4.270.0000.01821.29
7.4.260.0030.01621.14
7.4.250.0070.01321.13
7.4.240.0080.01121.26
7.4.230.0040.01421.29
7.4.220.0160.02321.29
7.4.210.0100.02321.22
7.4.200.0000.01921.29
7.4.160.0130.02621.16
7.4.150.0220.03521.23
7.4.140.0190.02921.20
7.4.130.0160.03021.13
7.4.120.0140.03221.33
7.4.110.0130.02721.25
7.4.100.0130.03021.25
7.4.90.0130.02621.12
7.4.80.0160.02621.25
7.4.70.0140.04221.17
7.4.60.0130.02621.30
7.4.50.0060.01821.05
7.4.40.0190.02221.35
7.4.30.0170.02421.39
7.4.00.0070.02419.46
7.3.330.0030.01317.93
7.3.320.0000.02418.08
7.3.310.0060.01320.89
7.3.300.0000.01920.88
7.3.290.0100.02321.07
7.3.280.0130.02421.07
7.3.270.0180.02121.10
7.3.260.0200.02321.02
7.3.250.0130.02721.28
7.3.240.0160.03321.00
7.3.230.0150.03521.21
7.3.210.0220.02220.92
7.3.200.0260.01721.20
7.3.190.0100.02921.23
7.3.180.0180.02121.10
7.3.170.0130.02921.16
7.3.160.0160.02221.32
7.2.330.0170.02421.32
7.2.320.0130.04321.39
7.2.310.0240.02721.50
7.2.300.0200.02021.28
7.2.290.0200.03321.23
7.2.60.0030.02022.92
7.2.00.0060.02625.29
7.1.200.0070.01721.76
7.1.100.1080.04221.62
7.1.70.0000.02023.10
7.1.60.0130.02923.29
7.1.50.0090.01622.53
7.1.00.0100.09028.42
7.0.200.3040.03354.15
7.0.140.0100.05762.35
7.0.60.0230.07758.98
7.0.50.0170.13056.96
7.0.40.0270.11323.78
7.0.30.0270.07023.56
7.0.20.0470.07323.58
7.0.10.0030.08023.79
7.0.00.0230.12323.63
5.6.280.0270.17777.75
5.6.210.0170.12777.47
5.6.200.0300.17775.11
5.6.190.0370.17077.21
5.6.180.4430.11777.14
5.6.170.0600.15777.35
5.6.160.0130.12077.16
5.6.150.0200.15375.00
5.6.140.0530.15375.05
5.6.130.0230.11375.05
5.6.120.0430.16377.97
5.6.110.0430.16378.00
5.6.100.0430.16778.05
5.6.90.0200.15777.89
5.6.80.0200.17777.43
5.6.70.3530.11777.17
5.5.350.0600.16077.23
5.5.340.0300.14774.89
5.5.330.0200.14077.01
5.5.320.3230.12076.82
5.5.310.0470.17376.98
5.5.300.0300.16774.88
5.5.290.0230.17074.80
5.5.280.0300.17777.69
5.5.270.0200.16077.79
5.5.260.0330.15377.67
5.5.250.0230.19377.58
5.5.240.0400.17777.08
5.4.450.0400.18776.28
5.4.440.0870.20076.27
5.4.430.1270.20776.48
5.4.420.1370.21776.27
5.4.410.1400.17376.14
5.4.400.1470.18376.00
5.4.390.0570.16775.39
5.4.380.0530.22075.45
5.4.370.0500.20375.44
5.4.360.0600.18775.63
5.4.350.0500.24075.45
5.4.340.0370.18775.63
5.4.320.0270.20075.58
5.4.310.0700.17775.61
5.4.300.0500.28375.54
5.4.290.0300.22075.59
5.4.280.0800.21375.41
5.4.270.0670.24075.59
5.4.260.0530.28775.43
5.4.250.0630.25375.54
5.4.240.0530.24375.62
5.4.230.0700.25375.40
5.4.220.0570.23375.58
5.4.210.0370.21775.46
5.4.200.0570.20373.49
5.4.190.0430.19375.61
5.4.180.0630.21775.55
5.4.170.0570.20075.57
5.4.160.0570.20075.61
5.4.150.0470.20375.39
5.4.140.0470.19773.12
5.4.130.0370.18773.09
5.4.120.0570.21073.02
5.4.110.0670.17072.95
5.4.100.0530.23773.16
5.4.90.0500.21073.11
5.4.80.0800.23372.94
5.4.70.0500.19073.13
5.4.60.0470.18373.15
5.4.50.0500.21773.04
5.4.40.0570.17373.01
5.4.30.0470.18073.04
5.4.20.0600.24073.03
5.4.10.0530.27772.91
5.4.00.0700.26072.53
5.3.290.0800.26075.20
5.3.280.0530.22775.25
5.3.270.0530.22075.18
5.3.260.0170.24075.25
5.3.250.0630.25375.27
5.3.240.0500.22075.23
5.3.230.0630.24075.13
5.3.220.0370.24775.12
5.3.210.0530.23375.21
5.3.200.0730.24375.13
5.3.190.0670.23075.10
5.3.180.0500.19074.98
5.3.170.0530.21075.14
5.3.160.0500.19775.21
5.3.150.0500.23775.11
5.3.140.0600.21075.05
5.3.130.0600.22075.21
5.3.120.0400.22375.12
5.3.110.0470.21375.20
5.3.100.0570.27774.57
5.3.90.0830.27374.65
5.3.80.0400.21774.53
5.3.70.0230.23774.49
5.3.60.0500.23074.50
5.3.50.0400.23074.98
5.3.40.0530.25774.39
5.3.30.0500.28774.51
5.3.20.0430.23074.14
5.3.10.0470.53774.22
5.3.00.0730.55774.24
5.2.170.0670.28069.13
5.2.160.0630.21069.09
5.2.150.0530.20369.12
5.2.140.0770.28369.14
5.2.130.0370.30369.67
5.2.120.0470.20369.01
5.2.110.0730.17069.11
5.2.100.0530.23369.10
5.2.90.0470.22369.10
5.2.80.0630.29369.01
5.2.70.0470.22069.08
5.2.60.0400.29768.99
5.2.50.0630.32068.75
5.2.40.0370.23768.75
5.2.30.0570.27368.72
5.2.20.0570.27068.74
5.2.10.0370.21068.87
5.2.00.0430.18768.55
5.1.60.0800.22383.82
5.1.50.0530.22783.83
5.1.40.0430.20783.91
5.1.30.0400.26084.20
5.1.20.0570.24784.25
5.1.10.0430.32083.97
5.1.00.0400.28083.94
5.0.50.0630.33082.45
5.0.40.0670.40382.30
5.0.30.0630.42082.13
5.0.20.0430.31782.05
5.0.10.0400.33782.03
5.0.00.0700.40382.06
4.4.90.0730.41379.79
4.4.80.0870.37779.86
4.4.70.0470.42079.88
4.4.60.0370.30779.76
4.4.50.0400.28079.79
4.4.40.0600.39779.86
4.4.30.0500.34379.82
4.4.20.0330.37779.88
4.4.10.0600.28779.89
4.4.00.0470.33379.90
4.3.110.0530.28779.83
4.3.100.0270.29779.78
4.3.90.0530.29079.75
4.3.80.0570.31079.86
4.3.70.0330.33379.72
4.3.60.0530.24379.74
4.3.50.0630.26379.77
4.3.40.0430.30779.75
4.3.30.0500.29378.55
4.3.20.0430.29378.47
4.3.10.0500.26378.45
4.3.00.0200.17378.34

preferences:
41.89 ms | 401 KiB | 5 Q