3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $vals = [['id' => 1], ['id' => 2], ['id' => 3], ['id' => 4]]; print join(', ', array_map(function ($val) {return $val['id'];}, $vals));
based on TaA8F

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.60.0270.00216.42
7.2.00.0040.00819.50
7.1.200.0110.00415.85
7.1.100.0000.01118.15
7.1.70.0000.01617.18
7.1.60.0100.01319.22
7.1.50.0090.00916.86
7.1.00.0100.07022.51
7.0.200.0000.00816.73
7.0.140.0130.06322.18
7.0.60.0030.06320.03
7.0.50.0100.07317.85
7.0.40.0130.05020.21
7.0.30.0230.07320.13
7.0.20.0300.05020.10
7.0.10.0130.08320.26
7.0.00.0170.05720.11
5.6.280.0100.06720.87
5.6.210.0130.07020.48
5.6.200.0100.07718.18
5.6.190.0030.08020.50
5.6.180.0370.07720.33
5.6.170.0230.07320.40
5.6.160.0070.05320.48
5.6.150.0130.06018.16
5.6.140.0170.07018.26
5.6.130.0070.08318.25
5.6.120.0030.06021.01
5.6.110.0070.07320.91
5.6.100.0030.04021.04
5.6.90.0030.08720.97
5.6.80.0170.06020.38
5.5.350.0200.06720.53
5.5.340.0070.05017.98
5.5.330.0130.07720.43
5.5.320.0330.04020.23
5.5.310.0430.06720.29
5.5.300.0170.07018.09
5.5.290.0070.08018.03
5.5.280.0100.07320.76
5.5.270.0100.04720.76
5.5.260.0100.08020.89
5.5.250.0030.06320.59
5.5.240.0000.08020.04
5.4.450.0330.04319.39
5.4.440.0830.05719.23
5.4.430.0500.05319.31
5.4.420.0630.05719.31
5.4.410.0570.05019.35
5.4.400.0870.05019.24
5.4.390.0230.06018.73
5.4.380.0270.05318.61
5.4.370.0270.05318.50
5.4.360.0200.07018.47
5.4.350.0300.05018.67
5.4.340.0200.05718.73
5.4.320.0300.06018.56
5.4.310.0370.04718.79
5.4.300.0200.06018.73
5.4.290.0270.05318.47
5.4.280.0230.06018.57
5.4.270.0230.05718.60
5.4.260.0300.05718.74
5.4.250.0430.06018.71
5.4.240.0230.05718.54
5.4.230.0230.05718.48
5.4.220.0230.06018.54
5.4.210.0430.06718.77
5.4.200.0370.04316.63
5.4.190.0330.04718.65
5.4.180.0330.05018.45
5.4.170.0400.04718.54
5.4.160.0400.07018.46
5.4.150.0370.06018.50
5.4.140.0270.05316.29
5.4.130.0270.05316.25
5.4.120.0200.06716.26
5.4.110.0300.04716.33
5.4.100.0200.05716.33
5.4.90.0230.06016.21
5.4.80.0300.06316.43
5.4.70.0230.05716.14
5.4.60.0400.06316.41
5.4.50.0330.04316.30
5.4.40.0400.05316.30
5.4.30.0300.05016.30
5.4.20.0330.05016.25
5.4.10.0370.04316.14
5.4.00.0400.05315.77
5.3.290.0230.05714.79
5.3.280.0330.04714.60
5.3.270.0170.06314.52
5.3.260.0270.05714.64
5.3.250.0330.04714.50
5.3.240.0270.06014.55
5.3.230.0530.04714.59
5.3.220.0300.05014.53
5.3.210.0200.06714.57
5.3.200.0300.04714.46
5.3.190.0270.05014.66
5.3.180.0330.05014.64
5.3.170.0200.06314.66
5.3.160.0330.06014.46
5.3.150.0400.05314.54
5.3.140.0170.06014.63
5.3.130.0200.06714.50
5.3.120.0230.06014.58
5.3.110.0230.06014.64
5.3.100.0400.06713.92
5.3.90.0270.05013.95
5.3.80.0230.05313.99
5.3.70.0300.04714.09
5.3.60.0270.05013.95
5.3.50.0330.04313.82
5.3.40.0230.05713.93
5.3.30.0330.05013.86
5.3.20.0270.05013.79
5.3.10.0400.04713.75
5.3.00.0230.05313.54
5.2.170.0170.05011.13
5.2.160.0170.04311.18
5.2.150.0230.04011.11
5.2.140.0200.04711.16
5.2.130.0230.04011.15
5.2.120.0330.05011.17
5.2.110.0270.03711.01
5.2.100.0200.04011.26
5.2.90.0230.04011.14
5.2.80.0300.03711.13
5.2.70.0300.03311.08
5.2.60.0130.05011.00
5.2.50.0170.05011.07
5.2.40.0300.04310.95
5.2.30.0200.04010.97
5.2.20.0200.03710.93
5.2.10.0230.03710.87
5.2.00.0200.04010.85
5.1.60.0230.0309.99
5.1.50.0200.0339.97
5.1.40.0170.03310.00
5.1.30.0230.03310.45
5.1.20.0230.03710.36
5.1.10.0200.03310.18
5.1.00.0170.03710.08
5.0.50.0000.0378.57
5.0.40.0030.0308.51
5.0.30.0030.0478.25
5.0.20.0170.0178.23
5.0.10.0000.0438.14
5.0.00.0130.0478.19
4.4.90.0100.0175.86
4.4.80.0000.0275.87
4.4.70.0100.0175.90
4.4.60.0000.0275.90
4.4.50.0100.0175.89
4.4.40.0100.0335.82
4.4.30.0130.0175.88
4.4.20.0100.0205.95
4.4.10.0170.0135.95
4.4.00.0100.0335.97
4.3.110.0030.0275.83
4.3.100.0070.0235.84
4.3.90.0100.0205.80
4.3.80.0070.0375.88
4.3.70.0100.0205.93
4.3.60.0070.0235.76
4.3.50.0100.0205.87
4.3.40.0100.0305.73
4.3.30.0070.0204.55
4.3.20.0070.0204.55
4.3.10.0030.0234.59
4.3.00.0100.0237.22