3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array(0 => 100, "color" => "red"); $keys = array_keys($array); foreach($keys as $key => $value) { echo $value ; } ?>

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.3.10.0060.00616.65
7.3.00.0070.00416.82
7.2.130.0110.00316.93
7.2.120.0060.00616.66
7.2.110.0000.01316.67
7.2.100.0030.00616.80
7.2.90.0000.01416.85
7.2.80.0110.00316.95
7.2.70.0040.00817.07
7.2.60.0070.00716.64
7.2.50.0000.01416.82
7.2.40.0040.00416.95
7.2.30.0030.01416.88
7.2.20.0030.00616.95
7.2.10.0040.00716.90
7.2.00.0080.00518.14
7.1.250.0060.00616.01
7.1.100.0000.01117.98
7.1.70.0040.01417.29
7.1.60.0070.01719.70
7.1.50.0090.00916.81
7.1.00.0070.07322.25
7.0.200.0030.00716.84
7.0.140.0100.06322.19
7.0.60.0000.09320.07
7.0.50.0130.07017.81
7.0.40.0100.08319.90
7.0.30.0370.07020.17
7.0.20.0270.07020.21
7.0.10.0030.04320.01
7.0.00.0070.08720.00
5.6.280.0030.07321.10
5.6.210.0000.04320.53
5.6.200.0100.05718.12
5.6.190.0070.05320.35
5.6.180.0230.03720.61
5.6.170.0270.06720.51
5.6.160.0100.08720.40
5.6.150.0100.05318.12
5.6.140.0070.07718.18
5.6.130.0130.08018.21
5.6.120.0030.07021.14
5.6.110.0030.06321.07
5.6.100.0070.03720.98
5.6.90.0030.04720.97
5.6.80.0070.05320.40
5.5.350.0270.08020.33
5.5.340.0130.04318.00
5.5.330.0030.06320.13
5.5.320.0300.08020.34
5.5.310.0300.07720.22
5.5.300.0170.07018.02
5.5.290.0030.08317.99
5.5.280.0070.04020.82
5.5.270.0100.03320.93
5.5.260.0070.06720.89
5.5.250.0030.06320.76
5.5.240.0130.07320.18
5.4.450.0170.04319.23
5.4.440.0030.04719.13
5.4.430.0330.04319.56
5.4.420.0470.03719.20
5.4.410.0500.03749.74
5.4.400.0230.04745.53
5.4.390.0170.04342.52
5.4.380.0130.06018.65
5.4.370.0200.04318.46
5.4.360.0070.05718.59
5.4.350.0100.05718.70
5.4.340.0130.05318.64
5.4.320.0140.03212.45
5.4.310.0080.04012.45
5.4.300.0070.04312.46
5.4.290.0050.04312.46
5.4.280.0050.04012.35
5.4.270.0080.04112.35
5.4.260.0110.05012.35
5.4.250.0060.04612.35
5.4.240.0070.03612.35
5.4.230.0040.04312.34
5.4.220.0050.04112.34
5.4.210.0060.04012.34
5.4.200.0040.04412.34
5.4.190.0070.03912.34
5.4.180.0090.04012.34
5.4.170.0080.04312.35
5.4.160.0050.04112.34
5.4.150.0080.03812.34
5.4.140.0070.04012.03
5.4.130.0090.03712.01
5.4.120.0060.04411.97
5.4.110.0050.04211.96
5.4.100.0060.04011.96
5.4.90.0120.03811.97
5.4.80.0090.04311.96
5.4.70.0070.04311.96
5.4.60.0050.03911.97
5.4.50.0140.06911.96
5.4.40.0070.03911.95
5.4.30.0060.03711.95
5.4.20.0080.03611.95
5.4.10.0030.04211.95
5.4.00.0090.03411.44
5.3.290.0050.03912.80
5.3.280.0060.03912.71
5.3.270.0040.04312.72
5.3.260.0060.04512.72
5.3.250.0100.03612.72
5.3.240.0050.04012.72
5.3.230.0120.05312.71
5.3.220.0090.04012.68
5.3.210.0050.04512.68
5.3.200.0070.03712.68
5.3.190.0070.04012.68
5.3.180.0090.04312.67
5.3.170.0100.03612.67
5.3.160.0060.03712.67
5.3.150.0070.04212.68
5.3.140.0040.04312.66
5.3.130.0080.04112.66
5.3.120.0090.04212.66
5.3.110.0070.06912.66
5.3.100.0080.04612.12
5.3.90.0050.04012.08
5.3.80.0060.03812.07
5.3.70.0070.04112.08
5.3.60.0070.03712.07
5.3.50.0050.04012.00
5.3.40.0070.04212.00
5.3.30.0080.03711.94
5.3.20.0070.03711.72
5.3.10.0080.03611.69
5.3.00.0080.03611.68
5.2.170.0040.0329.18
5.2.160.0040.0329.18
5.2.150.0060.0309.18
5.2.140.0040.0319.17
5.2.130.0050.0309.13
5.2.120.0060.0379.13
5.2.110.0060.0399.14
5.2.100.0060.0419.14
5.2.90.0040.0349.14
5.2.80.0080.0459.13
5.2.70.0040.0369.13
5.2.60.0060.0329.09
5.2.50.0090.0289.06
5.2.40.0080.0329.04
5.2.30.0080.0429.01
5.2.20.0060.0389.00
5.2.10.0050.0448.93
5.2.00.0090.0378.79
5.1.60.0070.0358.07
5.1.50.0020.0378.07
5.1.40.0060.0348.05
5.1.30.0040.0398.41
5.1.20.0070.0278.43
5.1.10.0050.0278.15
5.1.00.0050.0278.15
5.0.50.0040.0226.63
5.0.40.0030.0306.49
5.0.30.0060.0356.30
5.0.20.0030.0226.27
5.0.10.0020.0306.25
5.0.00.0070.0356.24
4.4.90.0030.0174.77
4.4.80.0050.0154.76
4.4.70.0010.0194.75
4.4.60.0060.0134.75
4.4.50.0010.0184.77
4.4.40.0040.0294.71
4.4.30.0060.0154.76
4.4.20.0070.0384.84
4.4.10.0030.0234.85
4.4.00.0020.0354.76
4.3.110.0030.0234.67
4.3.100.0030.0184.67
4.3.90.0030.0154.63
4.3.80.0010.0274.59
4.3.70.0050.0154.63
4.3.60.0040.0154.63
4.3.50.0030.0174.63
4.3.40.0030.0264.54
4.3.30.0020.0173.29
4.3.20.0030.0163.27
4.3.10.0030.0153.23
4.3.00.0030.01741.72