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); } for ($n=0;$n<20;$n++){ 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.0170.17619.80
8.3.50.0100.17423.10
8.3.40.0100.14921.21
8.3.30.0130.15221.68
8.3.20.0100.11422.81
8.3.10.0070.12024.28
8.3.00.0030.08522.77
8.2.180.0130.17318.60
8.2.170.0100.16522.96
8.2.160.0130.15424.11
8.2.150.0200.09924.18
8.2.140.0170.10024.66
8.2.130.0100.09026.16
8.2.120.0100.09520.55
8.2.110.0130.11523.04
8.2.100.0070.14720.72
8.2.90.0000.16021.76
8.2.80.0070.15120.13
8.2.70.0030.16119.96
8.2.60.0030.16320.43
8.2.50.0070.15220.13
8.2.40.0070.14422.04
8.2.30.0030.17620.50
8.2.20.0070.14620.06
8.2.10.0070.15620.42
8.2.00.0000.17220.00
8.1.280.0160.15825.92
8.1.270.0100.11523.91
8.1.260.0100.07826.35
8.1.250.0030.08528.09
8.1.240.0030.12829.98
8.1.230.0170.13623.97
8.1.220.0030.15122.66
8.1.210.0030.15322.53
8.1.200.0030.16322.10
8.1.190.0070.15822.25
8.1.180.0070.15022.39
8.1.170.0030.14423.51
8.1.160.0030.15426.76
8.1.150.0100.14623.69
8.1.140.0000.15422.63
8.1.130.0030.15122.62
8.1.120.0030.16222.33
8.1.110.0030.16422.31
8.1.100.0030.14922.33
8.1.90.0030.18022.39
8.1.80.0100.14922.36
8.1.70.0070.16222.27
8.1.60.0000.16422.49
8.1.50.0100.14822.46
8.1.40.0000.16222.29
8.1.30.0070.15322.40
8.1.20.0100.14922.50
8.1.10.0030.16922.31
8.1.00.0100.14822.23
8.0.300.0070.14322.29
8.0.290.0070.16221.50
8.0.280.0000.16023.30
8.0.270.0100.15021.91
8.0.260.0030.14722.00
8.0.250.0030.15721.63
8.0.240.0100.14921.62
8.0.230.0100.15321.63
8.0.220.0030.16121.47
8.0.210.0000.17621.70
8.0.200.0030.17021.73
8.0.190.0030.16321.68
8.0.180.0070.16221.72
8.0.170.0030.16021.57
8.0.160.0070.15021.69
8.0.150.0100.18021.60
8.0.140.0100.15121.60
8.0.130.0030.16018.21
8.0.120.0070.15621.65
8.0.110.0070.15021.54
8.0.100.0030.14421.63
8.0.90.0100.14621.59
8.0.80.0100.25321.58
8.0.70.0100.14121.58
8.0.60.0070.15321.49
8.0.50.0070.15421.42
8.0.30.0160.37321.77
8.0.20.0190.25721.87
8.0.10.0130.15121.77
8.0.00.0160.26321.39
7.4.330.0030.15221.02
7.4.320.0070.16821.11
7.4.300.0030.16521.13
7.4.290.0030.15721.29
7.4.280.0170.17021.13
7.4.270.0130.14121.14
7.4.260.0070.15621.30
7.4.250.0070.16221.29
7.4.240.0020.15921.22
7.4.230.0030.15021.31
7.4.220.0130.33021.36
7.4.210.0070.26521.18
7.4.200.0030.15221.33
7.4.160.0300.34021.43
7.4.150.0290.31021.22
7.4.140.0160.31021.24
7.4.130.0150.27821.30
7.4.120.0180.27321.16
7.4.110.0230.26221.35
7.4.100.0160.28321.25
7.4.90.0160.25921.40
7.4.80.0200.28421.41
7.4.70.0160.32321.16
7.4.60.0130.28621.18
7.4.50.0070.13121.27
7.4.40.0170.28221.22
7.4.30.0130.41021.36
7.4.00.0130.20519.47
7.3.330.0030.16018.00
7.3.320.0100.15818.07
7.3.310.0070.15620.97
7.3.300.0130.14821.09
7.3.290.0150.29321.06
7.3.280.0210.32621.05
7.3.270.0260.27920.93
7.3.260.0160.26521.25
7.3.250.0200.29021.14
7.3.240.0220.28321.11
7.3.230.0180.33821.36
7.3.210.0130.27321.29
7.3.200.0200.38121.08
7.3.190.0200.25921.06
7.3.180.0100.28320.98
7.3.170.0170.30720.96
7.3.160.0160.26021.37
7.2.330.0130.27421.17
7.2.320.0260.27721.25
7.2.310.0160.38221.45
7.2.300.0130.37521.52
7.2.290.0100.28521.49
7.2.60.0030.14622.95
7.2.00.0070.19324.93
7.1.200.0100.20421.35
7.1.100.0440.23221.61
7.1.70.0030.24122.90
7.1.60.0170.26623.31
7.1.50.0030.26522.53
7.1.00.0030.42328.27
7.0.200.4560.43654.08
7.0.140.0100.33362.45
7.0.60.0270.35359.23
7.0.50.0230.43056.92
7.0.40.0130.40723.56
7.0.30.0400.35323.59
7.0.20.0500.43023.47
7.0.10.0200.42023.66
7.0.00.0200.43323.70
5.6.280.0370.97778.07
5.6.210.0230.92377.68
5.6.200.0201.02074.95
5.6.190.0170.98377.25
5.6.180.0601.00077.08
5.6.170.0301.05077.32
5.6.160.0430.98777.20
5.6.150.0201.02774.98
5.6.140.0170.95775.05
5.6.130.0271.05775.04
5.6.120.0171.25377.94
5.6.110.0301.04778.04
5.6.100.0201.06378.03
5.6.90.0270.99077.90
5.6.80.0431.01777.34
5.5.350.0771.01377.42
5.5.340.0301.00374.91
5.5.330.0331.03077.12
5.5.320.0331.04777.09
5.5.310.0431.04077.07
5.5.300.0231.05774.66
5.5.290.0300.96774.78
5.5.280.0271.01777.61
5.5.270.0370.98377.53
5.5.260.0200.97377.81
5.5.250.0231.02377.70
5.5.240.0370.88377.18
5.4.450.0270.92375.96
5.4.440.0470.92776.10
5.4.430.0230.97076.34
5.4.420.0500.96076.21
5.4.410.0400.95375.83
5.4.400.0500.92075.87
5.4.390.0532.24775.60
5.4.380.0501.94775.44
5.4.370.0632.24775.57
5.4.360.0431.93375.78
5.4.350.0501.95375.80
5.4.340.0572.13375.63
5.4.320.0902.31775.78
5.4.310.0672.05375.59
5.4.300.0472.16375.38
5.4.290.0502.12375.46
5.4.280.0331.85075.49
5.4.270.0732.19375.38
5.4.260.0302.37375.81
5.4.250.0732.00075.41
5.4.240.0732.10375.46
5.4.230.0632.11375.55
5.4.220.0572.34075.75
5.4.210.0532.34075.77
5.4.200.0532.30073.69
5.4.190.0701.68775.77
5.4.180.0831.84375.61
5.4.170.0401.87375.62
5.4.160.0472.08075.77
5.4.150.0771.76375.74
5.4.140.0531.81373.21
5.4.130.0531.91373.26
5.4.120.0371.72373.26
5.4.110.0701.71073.36
5.4.100.0572.08373.11
5.4.90.0532.33373.26
5.4.80.0702.27373.05
5.4.70.0472.17373.05
5.4.60.0572.22073.24
5.4.50.0672.18073.14
5.4.40.0502.10373.15
5.4.30.0531.97773.05
5.4.20.0372.23373.05
5.4.10.0701.64773.25

preferences:
126.26 ms | 401 KiB | 5 Q