3v4l.org

run code in 200+ php & hhvm versions
<?php $array = []; // make some array for testing for($i=0; $i < 100; $i++) $array["key$i"] = $i; for($i=0; $i < 1000000; $i++) { reset($array); $firstKey = key($array); }
based on pfCqF

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.70.0600.10115.12
7.2.60.0280.07416.00
7.2.50.0330.07315.06
7.2.40.0560.10514.90
7.2.30.0350.07114.86
7.2.20.0570.09415.09
7.2.10.0480.08715.02
7.2.00.0260.07617.25
7.1.200.0130.04515.46
7.1.170.0420.08513.82
7.1.160.0530.11613.82
7.1.150.0510.11913.85
7.1.140.0490.09214.01
7.1.130.0460.10913.83
7.1.120.0480.07713.80
7.1.110.0630.08513.95
7.1.100.0320.08513.95
7.1.90.0700.10413.71
7.1.80.0600.09113.98
7.1.70.0280.07615.71
7.1.60.0440.13024.49
7.1.50.0300.08224.32
7.1.40.0420.08824.20
7.1.30.0440.08824.37
7.1.20.0380.08424.33
7.1.10.0210.08115.02
7.1.00.0190.08415.34
7.0.300.0450.07113.52
7.0.290.0330.12713.52
7.0.270.0530.08613.36
7.0.260.0550.11213.30
7.0.250.0470.11113.50
7.0.240.1650.08713.67
7.0.230.0680.11913.64
7.0.220.0550.11413.48
7.0.210.0480.11613.61
7.0.200.0370.09715.02
7.0.190.0110.09515.13
7.0.180.1180.08715.01
7.0.170.0380.09214.99
7.0.160.0300.08615.10
7.0.150.0220.07914.92
7.0.140.0210.07114.95
7.0.130.0250.07315.05
7.0.120.0240.08215.13
7.0.110.0280.08614.96
7.0.100.0360.07014.91
7.0.90.0260.06814.96
7.0.80.0210.06714.96
7.0.70.0270.07014.89
7.0.60.0240.07215.03
7.0.50.0260.09115.12
7.0.40.0260.06514.30
7.0.30.0220.07814.38
7.0.20.0200.06914.41
7.0.10.0210.07514.40
7.0.00.0180.08814.40
hhvm-3.22.00.1020.66790.27
hhvm-3.21.30.1160.77189.75
hhvm-3.21.00.1760.91889.80
hhvm-3.20.20.1570.71189.70
hhvm-3.19.20.1720.83589.18
hhvm-3.18.50.1290.63487.89
hhvm-3.18.40.1640.67287.64
hhvm-3.17.30.0830.44993.47
hhvm-3.15.40.0950.38389.22
hhvm-3.13.20.0810.38398.23
hhvm-3.12.140.1020.40998.49
hhvm-3.11.10.0940.41889.84
hhvm-3.10.10.0960.44886.94
5.6.300.0080.28017.62
5.6.290.0110.30117.43
5.6.280.0110.29517.47
5.6.270.0080.31817.92
5.6.260.0510.26517.54
5.6.250.0070.30817.70
5.6.240.0130.32317.77
5.6.230.0130.31017.57
5.6.220.0110.29017.74
5.6.210.0100.27917.54
5.6.200.0130.24317.59
5.6.190.0070.30817.67
5.6.180.0080.33617.61
5.6.170.0150.29317.58
5.6.160.0100.29917.57
5.6.150.0110.25617.65
5.6.140.0050.25117.73
5.6.130.0060.30917.58
5.6.120.0120.26017.67
5.6.110.0130.27517.67
5.6.100.0120.30117.49
5.6.90.0070.26717.68
5.6.80.0160.24417.23
5.6.70.0140.24817.23
5.6.60.0100.24617.32
5.6.50.0080.31217.28
5.6.40.0200.33417.22
5.6.30.0120.29317.33
5.6.20.0020.29117.35
5.6.10.0070.25217.22
5.6.00.0070.26017.07
5.5.380.0190.25914.16
5.5.370.0070.30214.43
5.5.360.0070.27414.33
5.5.350.0110.26314.19
5.5.340.0030.26714.41
5.5.330.0100.26914.41
5.5.320.0070.30014.65
5.5.310.0060.29614.55
5.5.300.0110.29414.59
5.5.290.0070.27914.55
5.5.280.0090.32014.62
5.5.270.0070.32414.49
5.5.260.0150.32414.46
5.5.250.0030.36814.46
5.5.240.0070.31214.27
5.5.230.0070.28414.28
5.5.220.0080.30714.20
5.5.210.0100.28014.31
5.5.200.0060.27614.30
5.5.190.0110.25514.29
5.5.180.0030.26214.33
5.5.160.0130.23414.02
5.5.150.0100.27014.15
5.5.140.0100.30414.13
5.5.130.0140.26914.20
5.5.120.0080.27014.22
5.5.110.0080.27714.19
5.5.100.0170.25314.24
5.5.90.0020.27714.18
5.5.80.0460.31414.14
5.5.70.0050.28914.06
5.5.60.0100.32214.09
5.5.50.0050.33614.23
5.5.40.0070.27513.94
5.5.30.0160.32514.24
5.5.20.0080.30613.94
5.5.10.0080.30614.00
5.5.00.0180.26814.03
5.4.450.0080.37615.19
5.4.440.0080.33215.25
5.4.430.0120.35115.35
5.4.420.0250.31715.22
5.4.410.0050.27615.08
5.4.400.0070.31915.00
5.4.390.0070.27114.99
5.4.380.0070.31215.06
5.4.370.0080.29415.00
5.4.360.0200.32014.98
5.4.350.0060.25615.22
5.4.340.0080.25215.06
5.4.320.0060.26815.00
5.4.310.0050.27914.91
5.4.300.0080.30815.21
5.4.290.0080.30015.01
5.4.280.0080.28615.02
5.4.270.0070.31315.21
5.4.260.0120.26115.08
5.4.250.0070.32115.04
5.4.240.0050.29715.07
5.4.230.0110.32314.88
5.4.220.0220.30514.90
5.4.210.0120.30615.02
5.4.200.0060.31014.88
5.4.190.0110.29714.94
5.4.180.0180.28614.89
5.4.170.0120.28915.09
5.4.160.0150.27414.94
5.4.150.0160.29614.94
5.4.140.0150.30713.62
5.4.130.0100.33713.86
5.4.120.0080.31813.88
5.4.110.0080.37413.83
5.4.100.0130.34313.79
5.4.90.0100.28813.84
5.4.80.0120.37213.90
5.4.70.0150.30013.91
5.4.60.0070.28513.69
5.4.50.0030.31113.70
5.4.40.0050.30613.85
5.4.30.0080.33113.59
5.4.20.0070.31813.67
5.4.10.0080.33313.72
5.4.00.0100.31913.56
5.3.290.0050.02712.71
5.3.280.0110.02012.67
5.3.270.0070.02212.59
5.3.260.0120.01812.67
5.3.250.0070.02412.56
5.3.240.0020.02812.55
5.3.230.0100.02212.59
5.3.220.0080.02112.59
5.3.210.0080.02212.58
5.3.200.0070.02112.61
5.3.190.0070.03412.64
5.3.180.0080.02112.63
5.3.170.0040.02612.65
5.3.160.0040.03012.68
5.3.150.0080.02212.70
5.3.140.0060.02312.64
5.3.130.0050.02412.59
5.3.120.0080.02012.64
5.3.110.0080.02012.66
5.3.100.0070.02012.68
5.3.90.0070.02312.67
5.3.80.0050.02512.61
5.3.70.0070.02312.63
5.3.60.0060.03412.63
5.3.50.0080.02312.62
5.3.40.0080.02012.60
5.3.30.0060.02212.54
5.3.20.0070.02012.60
5.3.10.0040.02312.53
5.3.00.0060.02012.51
5.2.170.0040.01812.19
5.2.160.0090.01212.22
5.2.150.0090.01512.09
5.2.140.0080.01612.17
5.2.130.0120.01612.15
5.2.120.0040.01812.16
5.2.110.0070.01512.21
5.2.100.0060.01612.18
5.2.90.0030.01812.06
5.2.80.0040.01912.13
5.2.70.0060.01712.06
5.2.60.0050.01812.09
5.2.50.0050.01612.14
5.2.40.0050.01712.14
5.2.30.0070.01512.12
5.2.20.0050.02212.01
5.2.10.0040.01812.03
5.2.00.0080.01411.99
5.1.60.0060.01411.99
5.1.50.0060.01211.99
5.1.40.0070.01411.99
5.1.30.0030.01711.99
5.1.20.0020.01911.99
5.1.10.0030.01611.99
5.1.00.0050.01311.99
5.0.50.0070.01011.99
5.0.40.0050.01211.99
5.0.30.0070.01511.99
5.0.20.0060.00911.99
5.0.10.0050.01011.99
5.0.00.0030.01711.99
4.4.90.0020.01111.99
4.4.80.0030.01111.99
4.4.70.0030.01011.99
4.4.60.0050.00711.99
4.4.50.0050.00711.99
4.4.40.0020.01711.99
4.4.30.0020.01011.99
4.4.20.0050.00711.99
4.4.10.0010.01111.99
4.4.00.0030.01711.99
4.3.110.0050.00711.99
4.3.100.0000.01211.99
4.3.90.0040.00711.99
4.3.80.0030.01511.99
4.3.70.0050.00711.99
4.3.60.0030.00911.99
4.3.50.0050.00811.99
4.3.40.0030.01411.99
4.3.30.0030.00811.99
4.3.20.0040.00711.99
4.3.10.0030.00911.99
4.3.00.0030.00911.99