3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array('Tiger' => 'Forest', 'Hippo' => 'River', 'Bird' => 'Sky'); foreach($array as $key => $value) { echo $key . $value; } ?>
based on QTAHd

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.00.0030.01319.46
7.1.100.0030.00518.29
7.1.70.0050.00316.98
7.1.60.0100.01019.50
7.1.50.0070.01316.91
7.1.00.0000.08022.27
7.0.200.0000.00716.73
7.0.60.0030.04019.92
7.0.50.0070.06317.89
7.0.40.0070.06320.24
7.0.30.0270.08020.17
7.0.20.0200.03720.17
7.0.10.0170.05020.13
7.0.00.0130.08320.30
5.6.280.0000.07720.92
5.6.210.0100.08320.56
5.6.200.0030.05718.22
5.6.190.0170.07320.34
5.6.180.3230.04020.56
5.6.170.0300.05320.54
5.6.160.0030.04020.48
5.6.150.0070.06018.21
5.6.140.0000.09018.15
5.6.130.0100.07018.21
5.6.120.0070.07320.96
5.6.110.0000.04320.96
5.6.100.0030.04320.97
5.6.90.0070.09021.01
5.6.80.0070.08020.38
5.6.70.4370.03720.36
5.5.350.0270.07720.43
5.5.340.0030.08018.04
5.5.330.0070.04020.19
5.5.320.3730.03720.27
5.5.310.0270.04320.29
5.5.300.0030.05018.02
5.5.290.0130.04718.02
5.5.280.0030.04320.93
5.5.270.0270.04320.69
5.5.260.0170.07320.79
5.5.250.0070.06320.57
5.5.240.0170.07720.18
5.4.450.0570.03719.41
5.4.440.0500.04319.44
5.4.430.0500.04719.41
5.4.420.0230.07019.52
5.4.410.0130.07718.92
5.4.400.0130.07718.82
5.4.390.0170.07018.58
5.4.380.0070.06318.48
5.4.370.0230.06318.46
5.4.360.0130.05018.74
5.4.350.0200.05718.62
5.4.340.0230.06318.40
5.4.320.0170.07018.73
5.4.310.0100.05318.62
5.4.300.0230.06318.48
5.4.290.0130.07318.56
5.4.280.0130.07318.68
5.4.270.0130.07318.57
5.4.260.0130.05718.75
5.4.250.0230.04718.57
5.4.240.0030.06718.52
5.4.230.0100.06018.76
5.4.220.0270.07018.64
5.4.210.0070.07718.67
5.4.200.0130.05016.52
5.4.190.0130.05018.63
5.4.180.0200.04718.46
5.4.170.0170.05018.70
5.4.160.0200.05018.60
5.4.150.0100.06718.47
5.4.140.0170.04716.18
5.4.130.0170.04016.25
5.4.120.0130.05016.26
5.4.110.0100.05016.16
5.4.100.0100.05316.25
5.4.90.0200.04316.25
5.4.80.0100.04716.14
5.4.70.0230.04716.28
5.4.60.0100.05316.05
5.4.50.0130.04716.06
5.4.40.0170.04716.09
5.4.30.0130.05716.16
5.4.20.0200.05716.16
5.4.10.0130.05716.13
5.4.00.0070.05315.59
5.3.290.0100.07714.66
5.3.280.0230.04314.68
5.3.270.0200.06714.60
5.3.260.0070.06314.68
5.3.250.0070.05714.59
5.3.240.0200.06314.52
5.3.230.0200.05714.66
5.3.220.0200.04314.61
5.3.210.0100.06014.47
5.3.200.0200.06014.54
5.3.190.0170.05314.55
5.3.180.0170.04714.50
5.3.170.0130.05014.51
5.3.160.0170.04714.55
5.3.150.0130.05714.64
5.3.140.0100.05314.54
5.3.130.0070.06014.55
5.3.120.0230.04314.49
5.3.110.0130.05314.44
5.3.100.0100.06714.01
5.3.90.0100.06014.02
5.3.80.0000.06013.91
5.3.70.0100.05014.11
5.3.60.0030.05714.10
5.3.50.0070.05313.96
5.3.40.0200.04314.06
5.3.30.0170.04313.82
5.3.20.0030.05713.68
5.3.10.0130.04713.61
5.3.00.0030.06013.59
5.2.170.0000.05011.09
5.2.160.0000.05011.10
5.2.150.0100.04311.20
5.2.140.0170.04311.07
5.2.130.0130.04311.05
5.2.120.0170.04711.05
5.2.110.0170.03711.06
5.2.100.0000.04711.24
5.2.90.0070.04011.09
5.2.80.0100.05311.16
5.2.70.0170.05011.08
5.2.60.0030.04710.98
5.2.50.0100.04311.04
5.2.40.0070.04010.94
5.2.30.0030.04711.01
5.2.20.0070.04010.91
5.2.10.0030.04310.83
5.2.00.0030.04710.72
5.1.60.0030.03710.05
5.1.50.0130.03010.02
5.1.40.0230.0339.96
5.1.30.0130.03310.30
5.1.20.0070.04310.38
5.1.10.0100.03310.05
5.1.00.0000.04310.08
5.0.50.0030.0308.68
5.0.40.0100.0308.47
5.0.30.0100.0408.31
5.0.20.0030.0308.37
5.0.10.0100.0278.23
5.0.00.0030.0438.17
4.4.90.0030.0235.91
4.4.80.0000.0235.81
4.4.70.0000.0275.81
4.4.60.0000.0275.84
4.4.50.0030.0205.90
4.4.40.0030.0375.89
4.4.30.0070.0205.88
4.4.20.0100.0175.91
4.4.10.0000.0275.97
4.4.00.0030.0375.98
4.3.110.0000.0275.86
4.3.100.0100.0175.79
4.3.90.0030.0205.89
4.3.80.0070.0335.76
4.3.70.0030.0305.82
4.3.60.0030.0205.91
4.3.50.0100.0275.82
4.3.40.0130.0375.74
4.3.30.0000.0334.57
4.3.20.0030.0304.53
4.3.10.0030.0274.49
4.3.00.0000.01715.75