3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arrStart = [ 0 => [ "start" => "04/26/2015 8:00 AM", ], 1 => [ "start" => "04/26/2015 9:00 AM", ], ]; $arrEnd = [ 0 => [ "end" => "04/26/2015 10:00 AM", ], 1 => [ "end" => "04/26/2015 11:00 AM", ], ]; $keys = [ 0 => "1", 1 => "3", ]; $result = []; foreach ($keys as $i => $key) { $result[$key] = [ 'start' => $arrStart[$i][0], 'end' => $arrEnd[$i][0], ]; } var_dump($result);
based on mfZ1s

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.0000.01219.54
7.1.100.0000.01017.98
7.1.70.0000.00817.34
7.1.60.0070.01619.50
7.1.50.0100.01416.68
7.1.00.0100.07022.36
7.0.200.0080.00016.88
7.0.140.0070.07321.99
7.0.60.0130.05719.79
7.0.50.0100.08017.87
7.0.40.0030.04720.06
7.0.30.0200.04020.02
7.0.20.0230.08320.33
7.0.10.0230.04320.12
7.0.00.0070.07720.16
5.6.280.0070.07020.85
5.6.210.0100.08020.71
5.6.200.0070.07318.23
5.6.190.0130.08320.60
5.6.180.0230.04320.38
5.6.170.0300.07320.61
5.6.160.0030.04720.41
5.6.150.0070.03718.18
5.6.140.0000.05718.09
5.6.130.0100.03318.22
5.6.120.0070.08721.01
5.6.110.0100.04021.00
5.6.100.0000.07320.95
5.6.90.0000.04720.98
5.6.80.0070.03320.40
5.6.70.0330.07020.38
5.5.350.0130.04720.50
5.5.340.0070.06718.02
5.5.330.0130.08020.36
5.5.320.0130.06320.29
5.5.310.0330.08020.32
5.5.300.0070.07317.92
5.5.290.0100.06718.00
5.5.280.0070.07020.77
5.5.270.0070.05720.86
5.5.260.0000.08020.76
5.5.250.0070.08020.48
5.5.240.0070.08020.15
5.4.450.0670.06019.46
5.4.440.0930.05319.27
5.4.430.0800.06319.38
5.4.420.0100.05319.54
5.4.410.0900.05319.45
5.4.400.0200.05318.67
5.4.390.0230.05318.53
5.4.380.0330.04718.53
5.4.370.0200.05318.68
5.4.360.0170.06718.50
5.4.350.0200.05718.66
5.4.340.0170.05718.63
5.4.320.0230.05718.69
5.4.310.0270.05018.52
5.4.300.0300.04718.66
5.4.290.0270.04718.69
5.4.280.0230.05018.71
5.4.270.0300.04318.55
5.4.260.0230.05718.67
5.4.250.0200.06718.71
5.4.240.0270.05018.72
5.4.230.0400.03318.46
5.4.220.0170.06018.67
5.4.210.0130.06018.71
5.4.200.0170.05316.64
5.4.190.0300.04318.67
5.4.180.0200.05318.51
5.4.170.0300.05318.62
5.4.160.0330.04318.66
5.4.150.0300.04718.70
5.4.140.0200.05716.13
5.4.130.0330.04016.31
5.4.120.0170.05716.26
5.4.110.0230.05016.22
5.4.100.0400.04716.26
5.4.90.0170.06316.12
5.4.80.0230.04716.25
5.4.70.0200.06016.29
5.4.60.0170.05716.18
5.4.50.0170.06016.26
5.4.40.0270.04316.23
5.4.30.0270.04716.03
5.4.20.0230.05016.19
5.4.10.0230.04716.07
5.4.00.0300.04015.77
5.3.290.0130.06014.65
5.3.280.0130.06014.63
5.3.270.0130.06014.68
5.3.260.0200.05314.59
5.3.250.0270.04314.68
5.3.240.0230.05014.70
5.3.230.0200.06014.65
5.3.220.0270.05314.48
5.3.210.0270.05014.57
5.3.200.0100.06014.56
5.3.190.0270.05014.66
5.3.180.0270.04714.50
5.3.170.0330.04314.45
5.3.160.0270.04714.64
5.3.150.0130.06014.55
5.3.140.0330.06314.50
5.3.130.0230.05714.44
5.3.120.0230.05714.48
5.3.110.0170.06314.53
5.3.100.0300.05313.95
5.3.90.0300.04313.97
5.3.80.0230.04714.06
5.3.70.0230.05014.00
5.3.60.0270.04713.98
5.3.50.0200.05313.89
5.3.40.0330.04014.04
5.3.30.0200.05713.86
5.3.20.0300.04713.62
5.3.10.0170.05313.76
5.3.00.0200.05013.64
5.2.170.0170.04311.11
5.2.160.0130.04311.18
5.2.150.0100.04711.12
5.2.140.0130.04711.19
5.2.130.0200.04311.06
5.2.120.0270.03311.13
5.2.110.0170.04311.08
5.2.100.0170.04011.24
5.2.90.0200.03711.24
5.2.80.0230.04011.01
5.2.70.0170.04311.08
5.2.60.0200.04711.09
5.2.50.0170.04311.05
5.2.40.0200.03711.03
5.2.30.0200.03710.97
5.2.20.0130.04310.98
5.2.10.0100.04310.83
5.2.00.0100.04710.77
5.1.60.0130.03310.02
5.1.50.0200.02710.05
5.1.40.0030.04310.00
5.1.30.0130.03710.39
5.1.20.0170.04010.41
5.1.10.0130.03710.18
5.1.00.0170.04010.19
5.0.50.0070.0308.64
5.0.40.0130.0238.43
5.0.30.0100.0408.24
5.0.20.0170.0308.19
5.0.10.0130.0238.19
5.0.00.0070.0508.29
4.4.90.0070.0237.21
4.4.80.0030.0237.21
4.4.70.0100.0207.21
4.4.60.0070.0237.21
4.4.50.0070.0277.21
4.4.40.0030.0377.21
4.4.30.0070.0237.21
4.4.20.0070.0237.21
4.4.10.0100.0237.21
4.4.00.0030.0407.21
4.3.110.0070.0207.21
4.3.100.0070.0207.21
4.3.90.0100.0207.21
4.3.80.0170.0307.21
4.3.70.0130.0137.21
4.3.60.0030.0237.21
4.3.50.0070.0237.21
4.3.40.0100.0307.21
4.3.30.0070.0207.21
4.3.20.0070.0207.21
4.3.10.0070.0207.21
4.3.00.0100.0239.30