3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input = array( array( 'tag_name' => 'google', 'a2' => 'google' ), array( 'tag_name' => 'technology', 'a2'=> 'google' ) ); echo implode(', ', array_map(function ($entry) { return $entry['tag_name'] . $entry['a2']; }, $input));

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.0060.00616.70
7.2.00.0060.00619.10
7.1.200.0090.00415.76
7.1.100.0030.01318.23
7.1.70.0060.00316.86
7.1.60.0120.01219.46
7.1.50.0100.01016.64
7.1.00.0030.07722.57
7.0.200.0040.00816.75
7.0.140.0070.07022.07
7.0.60.0100.08019.94
7.0.50.0000.06317.88
7.0.40.0130.08320.22
7.0.30.0330.06320.26
7.0.20.0330.07320.15
7.0.10.0100.08320.30
7.0.00.0030.04020.11
5.6.280.0130.06021.08
5.6.210.0000.05720.67
5.6.200.0100.08018.19
5.6.190.0130.06720.47
5.6.180.0400.07020.57
5.6.170.0170.04320.45
5.6.160.0030.06020.61
5.6.150.0070.08018.15
5.6.140.0030.04718.24
5.6.130.0030.04018.11
5.6.120.0070.07321.15
5.6.110.0130.08021.01
5.6.100.0030.04021.02
5.6.90.0070.08321.00
5.6.80.0200.07020.42
5.5.350.3600.04720.44
5.5.340.0130.07718.04
5.5.330.0000.09020.57
5.5.320.0300.05320.20
5.5.310.0330.04720.24
5.5.300.0070.06018.08
5.5.290.0070.04318.04
5.5.280.0100.08320.74
5.5.270.0130.04320.72
5.5.260.0130.08720.86
5.5.250.0130.08020.68
5.5.240.0130.04020.37
5.4.450.0600.05719.47
5.4.440.0930.04319.33
5.4.430.0070.05719.20
5.4.420.1100.06719.51
5.4.410.0770.05019.39
5.4.400.0970.06718.90
5.4.390.0770.05019.28
5.4.380.0200.06318.83
5.4.370.0500.04718.44
5.4.360.0370.05318.46
5.4.350.0300.06718.48
5.4.340.0400.04718.70
5.4.320.0070.03712.51
5.4.310.0040.04112.50
5.4.300.0090.03512.51
5.4.290.0070.04012.50
5.4.280.0060.04112.39
5.4.270.0060.04012.39
5.4.260.0090.03712.39
5.4.250.0060.03912.39
5.4.240.0080.03512.40
5.4.230.0070.03612.39
5.4.220.0090.03412.38
5.4.210.0050.03812.39
5.4.200.0080.03812.39
5.4.190.0080.04012.38
5.4.180.0100.03212.38
5.4.170.0090.03612.39
5.4.160.0120.03112.39
5.4.150.0170.02712.39
5.4.140.0140.02912.07
5.4.130.0050.03712.06
5.4.120.0070.03412.02
5.4.110.0130.03012.01
5.4.100.0080.03712.01
5.4.90.0080.03812.01
5.4.80.0080.03812.01
5.4.70.0100.03412.01
5.4.60.0100.03412.01
5.4.50.0040.04112.01
5.4.40.0070.04112.00
5.4.30.0080.04111.99
5.4.20.0060.03811.99
5.4.10.0070.03511.99
5.4.00.0070.03511.48
5.3.290.0110.06312.80
5.3.280.0050.04412.71
5.3.270.0080.04012.73
5.3.260.0090.04412.72
5.3.250.0090.03912.72
5.3.240.0050.04212.72
5.3.230.0090.04012.71
5.3.220.0100.03712.68
5.3.210.0080.04312.68
5.3.200.0060.04312.68
5.3.190.0060.04112.68
5.3.180.0060.04112.68
5.3.170.0080.03712.66
5.3.160.0090.03512.67
5.3.150.0090.03612.67
5.3.140.0080.05112.66
5.3.130.0100.05512.66
5.3.120.0100.04812.66
5.3.110.0060.04212.66
5.3.100.0070.03912.12
5.3.90.0080.03812.10
5.3.80.0080.03612.09
5.3.70.0080.03712.09
5.3.60.0060.03912.07
5.3.50.0070.03712.02
5.3.40.0090.04312.02
5.3.30.0070.04511.98
5.3.20.0040.04011.76
5.3.10.0040.03911.72
5.3.00.0080.03811.71
5.2.170.0050.0319.18
5.2.160.0090.0369.18
5.2.150.0070.0339.18
5.2.140.0050.0309.18
5.2.130.0070.0279.14
5.2.120.0050.0289.14
5.2.110.0030.0329.15
5.2.100.0030.0309.14
5.2.90.0020.0329.14
5.2.80.0060.0309.14
5.2.70.0050.0309.14
5.2.60.0030.0329.09
5.2.50.0060.0289.07
5.2.40.0030.0339.04
5.2.30.0050.0329.01
5.2.20.0060.0309.00
5.2.10.0050.0298.92
5.2.00.0090.0388.78
5.1.60.0100.0288.07
5.1.50.0040.0258.07
5.1.40.0080.0228.05
5.1.30.0080.0258.39
5.1.20.0070.0248.42
5.1.10.0040.0268.14
5.1.00.0040.0288.14
5.0.50.0050.0236.62
5.0.40.0080.0196.48
5.0.30.0070.0416.29
5.0.20.0020.0226.26
5.0.10.0020.0236.24
5.0.00.0020.0336.23
4.4.90.0040.0154.78
4.4.80.0020.0184.75
4.4.70.0030.0184.75
4.4.60.0020.0164.76
4.4.50.0040.0144.77
4.4.40.0020.0264.71
4.4.30.0060.0124.76
4.4.20.0060.0134.84
4.4.10.0030.0214.85
4.4.00.0060.0254.76
4.3.110.0050.0214.67
4.3.100.0040.0214.66
4.3.90.0040.0214.63
4.3.80.0030.0324.58
4.3.70.0050.0194.63
4.3.60.0040.0184.63
4.3.50.0020.0174.63
4.3.40.0000.0294.54
4.3.30.0030.0173.29
4.3.20.0010.0193.27
4.3.10.0040.0153.22
4.3.00.0070.0237.36