3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $awards = [ "award_year" => ["1999-01", "2010-12"], "award_title_user" => ["2", "tt"], "award_description_user" => ["2", "ddd"] ]; $remappedAwards = array_map(function($year, $title, $description){ return [ "award_year" => $year, "award_title_user" => $title, "award_description_user" => $description ]; }, $awards["award_year"], $awards["award_title_user"], $awards["award_description_user"]); $remappedAwards = array_reverse($remappedAwards); echo "<pre>"; var_dump($remappedAwards); echo "</pre>";

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.0rc40.0230.00898.97
7.3.0rc30.0950.01016.54
7.3.0beta10.0000.01112.48
7.3.0alpha10.0100.00312.74
7.2.60.0100.00316.83
7.2.00.0100.01019.39
7.1.200.0030.00715.63
7.1.100.0030.01018.01
7.1.70.0000.00716.87
7.1.60.0060.01319.32
7.1.50.0080.00417.02
7.1.00.0070.07322.36
7.0.200.0040.00416.71
7.0.140.0100.06321.92
7.0.60.0270.07019.98
7.0.50.0100.03317.89
7.0.40.0030.04320.27
7.0.30.0500.06020.15
7.0.20.0470.06320.07
7.0.10.0170.07720.12
7.0.00.0000.05020.20
5.6.280.0070.07021.08
5.6.210.0070.05320.70
5.6.200.0070.08318.18
5.6.190.0100.08320.57
5.6.180.0200.07720.52
5.6.170.0370.08020.54
5.6.160.0030.08720.45
5.6.150.0070.07718.29
5.6.140.0130.07318.17
5.6.130.0070.08018.18
5.6.120.0130.07320.99
5.6.110.0000.04321.01
5.6.100.0000.04321.02
5.6.90.0000.09720.97
5.6.80.0000.06720.38
5.5.350.3300.03020.39
5.5.340.0170.05018.05
5.5.330.0030.07020.28
5.5.320.0170.06720.36
5.5.310.0270.05320.28
5.5.300.0170.07318.08
5.5.290.0030.04017.93
5.5.280.0100.05020.69
5.5.270.0100.03720.87
5.5.260.0000.05320.98
5.5.250.0100.06320.59
5.5.240.0100.04020.27
5.4.450.0870.05319.61
5.4.440.0800.05319.63
5.4.430.0730.06319.30
5.4.420.0600.06319.48
5.4.410.0970.06019.43
5.4.400.0900.04319.25
5.4.390.0870.06719.23
5.4.380.0100.05319.17
5.4.370.0800.04719.12
5.4.360.0100.05319.30
5.4.350.0800.05019.11
5.4.340.0050.03512.02
5.4.320.0060.03512.50
5.4.310.0100.03312.50
5.4.300.0080.03312.51
5.4.290.0080.03612.50
5.4.280.0090.03212.39
5.4.270.0090.03212.39
5.4.260.0040.04012.39
5.4.250.0070.03612.39
5.4.240.0040.03712.40
5.4.230.0050.05212.39
5.4.220.0050.03712.38
5.4.210.0070.04012.39
5.4.200.0050.03812.39
5.4.190.0080.03612.39
5.4.180.0050.03512.38
5.4.170.0070.03812.39
5.4.160.0080.03312.39
5.4.150.0040.03812.39
5.4.140.0060.03612.07
5.4.130.0060.03512.06
5.4.120.0070.03312.02
5.4.110.0070.03612.01
5.4.100.0100.03212.01
5.4.90.0080.03912.01
5.4.80.0060.03612.01
5.4.70.0080.03312.01
5.4.60.0070.03512.01
5.4.50.0070.03912.00
5.4.40.0110.03412.00
5.4.30.0030.03811.99
5.4.20.0060.03912.00
5.4.10.0050.03812.00
5.4.00.0060.03711.48
5.3.290.0060.03912.80
5.3.280.0050.04312.71
5.3.270.0090.03712.72
5.3.260.0060.03912.71
5.3.250.0080.04112.72
5.3.240.0090.03712.72
5.3.230.0080.04112.71
5.3.220.0060.03812.68
5.3.210.0120.03512.68
5.3.200.0080.03412.68
5.3.190.0080.03812.68
5.3.180.0090.03612.67
5.3.170.0050.04012.67
5.3.160.0060.03612.67
5.3.150.0030.04012.67
5.3.140.0070.03612.66
5.3.130.0080.03912.66
5.3.120.0030.04212.66
5.3.110.0050.04012.65
5.3.100.0050.04012.12
5.3.90.0110.03912.08
5.3.80.0070.03512.07
5.3.70.0080.03612.08
5.3.60.0120.03912.06
5.3.50.0080.04212.00
5.3.40.0080.03512.00
5.3.30.0060.03611.95
5.3.20.0090.04011.73
5.3.10.0050.03611.70
5.3.00.0050.03711.68
5.2.170.0030.0349.18
5.2.160.0040.0329.18
5.2.150.0090.0269.18
5.2.140.0060.0299.18
5.2.130.0050.0319.14
5.2.120.0030.0309.14
5.2.110.0060.0309.15
5.2.100.0100.0329.14
5.2.90.0050.0309.14
5.2.80.0020.0359.14
5.2.70.0050.0339.14
5.2.60.0050.0339.09
5.2.50.0110.0369.06
5.2.40.0060.0289.03
5.2.30.0080.0279.01
5.2.20.0060.0289.00
5.2.10.0070.0328.93
5.2.00.0070.0288.79
5.1.60.0040.0238.07
5.1.50.0040.0258.06
5.1.40.0080.0218.04
5.1.30.0040.0268.40
5.1.20.0060.0288.42
5.1.10.0050.0258.14
5.1.00.0050.0248.14
5.0.50.0040.0196.62
5.0.40.0040.0186.48
5.0.30.0030.0326.29
5.0.20.0030.0196.27
5.0.10.0070.0206.24
5.0.00.0010.0336.23
4.4.90.0030.0154.78
4.4.80.0030.0164.75
4.4.70.0070.0114.75
4.4.60.0010.0174.75
4.4.50.0020.0164.77
4.4.40.0040.0244.71
4.4.30.0040.0164.76
4.4.20.0030.0154.84
4.4.10.0000.0194.85
4.4.00.0050.0234.76
4.3.110.0030.0164.67
4.3.100.0030.0144.67
4.3.90.0020.0154.63
4.3.80.0020.0254.58
4.3.70.0030.0154.63
4.3.60.0050.0144.63
4.3.50.0050.0164.63
4.3.40.0020.0254.54
4.3.30.0020.0163.29
4.3.20.0050.0133.26
4.3.10.0030.0153.22
4.3.00.0070.0236.88