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<10;$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.70.0130.07920.36
8.3.60.0160.07919.68
8.3.50.0100.08723.10
8.3.40.0170.09823.01
8.3.30.0160.09622.22
8.2.190.0070.09119.79
8.2.180.0100.08419.13
8.2.170.0100.09922.02
8.2.160.0130.09023.41
8.1.280.0160.08625.92
7.4.10.0130.13821.22
7.4.00.0160.14320.43
7.3.130.0070.14021.39
7.3.120.0160.17621.06
7.3.110.0070.15221.12
7.3.100.0070.16521.18
7.3.90.0000.18921.08
7.3.80.0070.13321.27
7.3.70.0070.13221.27
7.3.60.0100.17921.05
7.3.50.0100.17621.12
7.3.40.0030.11121.01
7.3.30.0100.11520.99
7.3.20.0070.17924.21
7.3.10.0140.12323.31
7.3.00.0190.11423.06
7.2.260.0070.14521.21
7.2.250.0170.17321.48
7.2.240.0130.15821.45
7.2.230.0100.15521.27
7.2.220.0130.18021.59
7.2.210.0100.18121.55
7.2.200.0070.15621.13
7.2.190.0070.18021.11
7.2.180.0030.16821.25
7.2.170.0070.13321.32
7.2.160.0130.19321.29
7.2.150.0030.19124.23
7.2.140.0500.14724.39
7.2.130.0200.14023.37
7.2.120.0180.17523.34
7.2.110.0150.17123.53
7.2.100.0200.14523.16
7.2.90.0170.14723.32
7.2.80.0240.14023.49
7.2.70.0230.08418.11
7.2.60.0210.12123.06
7.2.50.0230.06817.89
7.2.40.0210.08018.03
7.2.30.0230.14123.42
7.2.20.0170.13423.21
7.2.10.0200.13922.99
7.2.00.0130.12224.14
7.1.330.0000.28623.30
7.1.320.0030.23123.02
7.1.310.0100.27223.12
7.1.300.0030.22523.43
7.1.290.0070.22223.22
7.1.280.0030.24023.10
7.1.270.0030.26723.37
7.1.260.0070.20623.23
7.1.250.0130.21222.20
7.1.240.0100.25923.20
7.1.230.0070.22723.24
7.1.220.0130.21223.24
7.1.210.0230.21123.22
7.1.200.0020.17422.41
7.1.190.0190.23923.09
7.1.180.0250.19723.13
7.1.170.0140.21923.17
7.1.160.0170.21723.08
7.1.150.0160.23423.27
7.1.140.0060.22023.16
7.1.130.0030.20223.21
7.1.120.0100.21423.22
7.1.110.0100.23423.10
7.1.100.0270.19422.02
7.1.90.0070.23123.13
7.1.80.0030.22323.29
7.1.70.0080.16423.16
7.1.60.0110.18923.18
7.1.50.0130.15923.14
7.1.40.0100.21823.44
7.1.30.0170.23723.23
7.1.20.0130.22123.32
7.1.10.0030.20122.99
7.1.00.0130.22125.74
7.0.330.0290.30357.29
7.0.320.0210.32557.18
7.0.310.0170.23857.30
7.0.300.0310.26457.12
7.0.290.0230.29257.32
7.0.280.4090.30257.35
7.0.270.0300.28557.29
7.0.260.0140.29557.36
7.0.250.0130.27957.50
7.0.240.0130.31557.25
7.0.230.0200.33857.34
7.0.220.0130.29557.38
7.0.210.0140.28857.35
7.0.200.1320.22755.74
7.0.190.0140.37157.16
7.0.180.0230.35457.40
7.0.170.0300.28557.38
7.0.160.0170.29857.05
7.0.150.0070.30857.13
7.0.140.0100.26159.77
7.0.130.0100.30557.12
7.0.120.0130.32057.40
7.0.110.0200.36157.28
7.0.100.0260.29757.29
7.0.90.0100.34657.21
7.0.80.0100.41257.27
7.0.70.0220.30357.17
7.0.60.0610.27058.21
7.0.50.0170.34957.17
7.0.40.0210.27422.24
7.0.30.0290.23322.20
7.0.20.0250.26722.19
7.0.10.0150.28822.05
7.0.00.0130.30822.25
5.6.400.0400.74672.59
5.6.390.0230.78772.95
5.6.380.0430.68173.04
5.6.370.0400.66472.87
5.6.360.0330.77373.05
5.6.350.0470.64972.83
5.6.340.0490.70973.06
5.6.330.0400.77572.93
5.6.320.0450.68773.15
5.6.310.0440.71672.95
5.6.300.0500.73473.02
5.6.290.0270.70672.86
5.6.280.0180.65475.42
5.6.270.0450.78472.87
5.6.260.0300.70573.00
5.6.250.0390.59273.40
5.6.240.0540.86772.93
5.6.230.0320.91472.95
5.6.220.0430.78173.06
5.6.210.0330.68175.17
5.6.200.0270.70974.07
5.6.190.0370.73375.10
5.6.180.0430.69275.16
5.6.170.0550.70875.19
5.6.160.0330.67473.99
5.6.150.0310.67974.01
5.6.140.0310.66774.05
5.6.130.0450.72573.88
5.6.120.0410.67375.38
5.6.110.0200.73275.39
5.6.100.0370.78375.38
5.6.90.0460.74075.40
5.6.80.0280.77775.08
5.6.70.0500.88772.79
5.6.60.0230.79572.71
5.6.50.0430.77772.65
5.6.40.0330.85572.96
5.6.30.0400.97373.02
5.6.20.0460.87972.97
5.6.10.0400.91972.79
5.6.00.0491.11072.74
5.5.380.0250.87672.83
5.5.370.0370.81472.55
5.5.360.0330.74772.64
5.5.350.0400.72075.10
5.5.340.0270.68873.80
5.5.330.0280.69375.11
5.5.320.0370.64175.16
5.5.310.0480.66674.89
5.5.300.0330.67673.89
5.5.290.0320.75073.98
5.5.280.0280.73575.22
5.5.270.0360.73775.17
5.5.260.0400.78275.34
5.5.250.0350.72075.06
5.5.240.2460.74574.93
5.5.230.0390.90072.84
5.5.220.0380.95072.92
5.5.210.0360.79172.84
5.5.200.0230.94872.78
5.5.190.0470.86872.98
5.5.180.0370.82872.86
5.5.170.0490.99672.89
5.5.160.0400.93772.82
5.5.150.0421.04772.97
5.5.140.0521.06072.71
5.5.130.0630.87872.88
5.5.120.0680.93572.94
5.5.110.0370.98172.68
5.5.100.0681.02772.66
5.5.90.0231.01272.72
5.5.80.0430.86072.99
5.5.70.0450.83972.86
5.5.60.0470.87472.80
5.5.50.0400.89572.82
5.5.40.0270.95772.88
5.5.30.0410.94572.73
5.5.20.0390.94472.83
5.5.10.0601.13272.84
5.5.00.0531.07972.83
5.4.450.0420.74572.63
5.4.440.0320.71572.98
5.4.430.0410.78772.71
5.4.420.0380.71972.73
5.4.410.0450.68972.87
5.4.400.0430.75772.67
5.4.390.0570.90972.53
5.4.380.0330.92872.52
5.4.370.0450.98072.52
5.4.360.0450.94172.65
5.4.350.0530.95672.50
5.4.340.0631.04672.52
5.4.330.0400.90069.59
5.4.320.0450.93372.48
5.4.310.0560.97172.38
5.4.300.0470.96372.51
5.4.290.0530.89372.49
5.4.280.0430.96772.52
5.4.270.0471.02672.40
5.4.260.0460.95172.53
5.4.250.0671.09972.42
5.4.240.0381.00772.55
5.4.230.0551.05472.39
5.4.220.0661.06272.43
5.4.210.0651.05372.60
5.4.200.0431.05571.37
5.4.190.0401.04472.39
5.4.180.0580.96672.56
5.4.170.0551.06072.43
5.4.160.0501.10672.63
5.4.150.0450.97072.50
5.4.140.0421.05671.40
5.4.130.0481.08871.37
5.4.120.0451.04671.19
5.4.110.0400.99471.16
5.4.100.0431.05571.28
5.4.90.0621.13471.15
5.4.80.0621.11571.25
5.4.70.0500.97871.38
5.4.60.0420.99471.28
5.4.50.0471.10671.26
5.4.40.0530.98271.24
5.4.30.0790.96671.30
5.4.20.0541.10271.35
5.4.10.0570.97171.37
5.4.00.0440.72069.37

preferences:
36.14 ms | 401 KiB | 5 Q