3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $def = array('a'=>1, 'b'=>2); //////// $arr_lang = array('de' => array('a'=>3, 'c'=>4)); $arr_lang = array_map(function ($l) { global $def; return array_merge($def, $l); }, $arr_lang); ////// print_r($arr_lang);

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.0180.00716.12
7.3.00.0170.00616.27
7.2.130.0090.01516.65
7.2.120.0120.01016.29
7.2.110.0170.00616.29
7.2.100.0100.00716.38
7.2.90.0150.00516.53
7.2.80.0120.00916.11
7.2.70.0180.00416.71
7.2.60.0170.00316.55
7.2.50.0110.01116.15
7.2.40.0090.01316.85
7.2.30.0170.00416.37
7.2.20.0170.00316.23
7.2.10.0120.00816.19
7.2.00.0070.00917.97
7.1.250.0150.00715.50
7.1.100.0070.01018.04
7.1.70.0030.00717.21
7.1.60.0090.01519.70
7.1.50.0100.01316.61
7.1.00.0000.08022.48
7.0.200.0030.00616.75
7.0.140.0070.07322.16
7.0.100.0070.03719.93
7.0.90.0070.03719.87
7.0.80.0100.07019.87
7.0.70.0130.07319.92
7.0.60.0130.09320.04
7.0.50.0030.04020.40
7.0.40.0030.09020.14
7.0.30.0070.04320.18
7.0.20.0000.08720.10
7.0.10.0100.08019.95
7.0.00.0070.04020.14
5.6.280.0100.06721.00
5.6.250.0030.04020.75
5.6.240.0170.07320.69
5.6.230.0100.03720.61
5.6.220.0100.03720.50
5.6.210.0100.08020.77
5.6.200.0100.08021.06
5.6.190.0100.03721.05
5.6.180.0100.07721.03
5.6.170.0130.07721.02
5.6.160.0030.08720.96
5.6.150.0070.08321.02
5.6.140.0030.06021.08
5.6.130.0100.07020.95
5.6.120.0070.07321.09
5.6.110.0100.07721.10
5.6.100.0100.06021.11
5.6.90.0100.07721.02
5.6.80.0030.07020.51
5.6.70.0030.08020.46
5.6.60.0130.08020.54
5.6.50.0100.08020.49
5.6.40.0000.04320.43
5.6.30.0130.07020.37
5.6.20.0170.07720.38
5.6.10.0000.08320.35
5.6.00.0030.08720.30
5.5.380.0070.03720.45
5.5.370.0070.05720.45
5.5.360.0070.04320.41
5.5.350.0100.07320.46
5.5.340.0070.03720.93
5.5.330.0030.08320.81
5.5.320.0100.08020.85
5.5.310.0100.03320.64
5.5.300.0030.07320.63
5.5.290.0000.05720.79
5.5.280.0100.08020.78
5.5.270.0100.07720.92
5.5.260.0130.07320.86
5.5.250.0030.07720.66
5.5.240.0100.07020.15
5.5.230.0000.07020.30
5.5.220.0030.06720.24
5.5.210.0030.07720.30
5.5.200.0000.06020.26
5.5.190.0070.08020.27
5.5.180.0100.05020.27
5.5.160.0000.07720.23
5.5.150.0070.05020.27
5.5.140.0070.06320.11
5.5.130.0130.07319.96
5.5.120.0100.07320.11
5.5.110.0030.08020.27
5.5.100.0070.05720.02
5.5.90.0130.06020.08
5.5.80.0130.03019.95
5.5.70.0070.05020.16
5.5.60.0030.06320.15
5.5.50.0030.07320.10
5.5.40.0070.04720.15
5.5.30.0170.05320.06
5.5.20.0100.05020.09
5.5.10.0130.06720.12
5.5.00.0130.06319.97
5.4.450.0030.04719.55
5.4.440.0100.07719.45
5.4.430.0100.07319.20
5.4.420.0100.05319.38
5.4.410.0100.04319.23
5.4.400.0070.04019.13
5.4.390.0070.05319.13
5.4.380.0200.06019.10
5.4.370.0070.07319.04
5.4.360.0030.08018.88
5.4.350.0070.07719.23
5.4.340.0070.08319.23
5.4.320.0030.08319.04
5.4.310.0030.07719.23
5.4.300.0100.07019.04
5.4.290.0030.07719.09
5.4.280.0070.07719.04
5.4.270.0070.03719.12
5.4.260.0070.06319.13
5.4.250.0030.07319.04
5.4.240.0070.07319.08
5.4.230.0030.07018.90
5.4.220.0000.07019.15
5.4.210.0100.03319.12
5.4.200.0030.06719.20
5.4.190.0100.04319.12
5.4.180.0030.08319.20
5.4.170.0130.04018.94
5.4.160.0100.06719.01
5.4.150.0070.06319.01
5.4.140.0070.07016.30
5.4.130.0030.06016.40
5.4.120.0000.08016.29
5.4.110.0000.07016.49
5.4.100.0030.04716.39
5.4.90.0070.05016.49
5.4.80.0100.07016.47
5.4.70.0070.06716.49
5.4.60.0030.04016.41
5.4.50.0130.02716.44
5.4.40.0070.06316.36
5.4.30.0030.06016.47
5.4.20.0030.04316.40
5.4.10.0000.07016.30
5.4.00.0100.06715.87
5.3.290.0030.07714.80
5.3.280.0000.08014.59
5.3.270.0030.07714.59
5.3.260.0170.06714.59
5.3.250.0070.04014.53
5.3.240.0070.07314.49
5.3.230.0000.04314.65
5.3.220.0100.04314.68
5.3.210.0000.07714.50
5.3.200.0170.06014.65
5.3.190.0130.05014.54
5.3.180.0070.07314.55
5.3.170.0100.05014.55
5.3.160.0130.06714.48
5.3.150.0070.05314.56
5.3.140.0070.03314.51
5.3.130.0070.07714.50
5.3.120.0100.07314.56
5.3.110.0130.06314.50
5.3.100.0030.07713.97
5.3.90.0070.07014.04
5.3.80.0070.05714.01
5.3.70.0030.08014.08
5.3.60.0030.07713.94
5.3.50.0100.06713.89
5.3.40.0100.05713.87
5.3.30.0030.06713.89
5.3.20.0070.07313.71
5.3.10.0070.07013.77
5.3.00.0070.06313.62
5.2.170.0100.06011.05
5.2.160.0000.07311.06
5.2.150.0070.06011.18
5.2.140.0100.06711.18
5.2.130.0070.05710.96
5.2.120.0030.06011.06
5.2.110.0030.05711.10
5.2.100.0130.04710.95
5.2.90.0000.03711.10
5.2.80.0100.04711.09
5.2.70.0170.02710.96
5.2.60.0000.06311.10
5.2.50.0200.04310.81
5.2.40.0170.05310.92
5.2.30.0070.02710.77
5.2.20.0000.05310.99
5.2.10.0030.03710.87
5.2.00.0070.04310.64
5.1.60.0070.03710.02
5.1.50.0030.0509.98
5.1.40.0070.04010.04
5.1.30.0100.05010.35
5.1.20.0030.04710.42
5.1.10.0070.04710.12
5.1.00.0000.0309.91
5.0.50.0070.0239.08
5.0.40.0070.0409.08
5.0.30.0100.0509.08
5.0.20.0030.0209.08
5.0.10.0030.0409.08
5.0.00.0100.0609.08
4.4.90.0000.0379.08
4.4.80.0070.0279.08
4.4.70.0000.0339.08
4.4.60.0000.0209.08
4.4.50.0030.0309.08
4.4.40.0030.0239.08
4.4.30.0000.0209.08
4.4.20.0070.0139.08
4.4.10.0030.0209.08
4.4.00.0130.0439.08
4.3.110.0000.0379.08
4.3.100.0030.0339.08
4.3.90.0070.0279.08
4.3.80.0030.0479.08
4.3.70.0100.0279.08
4.3.60.0030.0309.08
4.3.50.0000.0379.08
4.3.40.0000.0409.08
4.3.30.0000.0309.08
4.3.20.0000.0209.08
4.3.10.0000.0379.08
4.3.00.0030.0279.08