3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ret[0] = 1; // player position $ret[1] = 'Tiger Woods'; // player name $ret[3] = 68; // score $ret[4] = 2; // start of second record, player #2 position $ret[5] = 'Phil Mickleson'; // player #2 name $ret[6] = 69; // player #2 score $newret = array_combine ( array('position', 'name', 'score'), call_user_func_array( 'array_map', array_merge(array(NULL),array_chunk($ret, 3)) ) ); print_r($newret);

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.0070.00716.63
7.1.200.0000.01115.79
7.1.70.0030.00616.93
7.1.60.0070.01719.82
7.1.50.0120.00616.54
7.1.00.0100.06722.45
7.0.200.0040.00416.76
7.0.140.0000.07022.12
7.0.60.0030.08321.74
7.0.50.0130.06717.97
7.0.40.0100.05320.25
7.0.30.0330.07320.21
7.0.20.0330.07020.34
7.0.10.0130.08320.19
7.0.00.0170.05020.18
5.6.280.0030.07020.77
5.6.210.0030.04720.46
5.6.200.0070.08018.23
5.6.190.0000.07020.63
5.6.180.0270.07720.39
5.6.170.0130.04320.39
5.6.160.0130.07720.52
5.6.150.0100.04318.25
5.6.140.0030.09018.17
5.6.130.0030.05318.14
5.6.120.0030.04721.02
5.6.110.0170.07321.02
5.6.100.0030.06721.04
5.6.90.0030.04720.98
5.6.80.0100.08020.39
5.5.350.3900.04020.46
5.5.340.0070.06718.08
5.5.330.0100.03320.19
5.5.320.0470.06320.34
5.5.310.0270.05020.19
5.5.300.0100.07718.08
5.5.290.0030.04018.07
5.5.280.0130.07320.89
5.5.270.0100.08320.84
5.5.260.0100.08320.95
5.5.250.0100.08720.45
5.5.240.0070.06720.22
5.4.450.3870.03719.53
5.4.440.3830.04319.55
5.4.430.3530.04019.39
5.4.420.3600.03719.54
5.4.410.4270.02719.42
5.4.400.3600.03318.95
5.4.390.4030.04019.06
5.4.380.3800.04019.13
5.4.370.4530.04019.08
5.4.360.3630.04018.99
5.4.350.3730.03719.20
5.4.340.3370.03719.06
5.4.320.2770.03319.20
5.4.310.3070.04018.99
5.4.300.0270.02318.94
5.4.290.0000.04019.05
5.4.280.1500.03718.98
5.4.270.3570.03719.16
5.4.260.3830.04019.15
5.4.250.3630.03019.21
5.4.240.3770.06719.21
5.4.230.3700.03018.94
5.4.220.3270.03319.12
5.4.210.3500.04019.21
5.4.200.3700.03719.05
5.4.190.3800.04318.96
5.4.180.0000.06318.93
5.4.170.4170.04719.07
5.4.160.3730.03319.21
5.4.150.3870.03318.96
5.4.140.3730.04016.44
5.4.130.3830.03316.49
5.4.120.3900.03716.35
5.4.110.4030.04316.51
5.4.100.3070.03716.63
5.4.90.3630.03716.22
5.4.80.4900.03716.63
5.4.70.4200.04016.51
5.4.60.3930.04316.45
5.4.50.3670.02716.41
5.4.40.3770.03716.41
5.4.30.3630.03316.50
5.4.20.2800.03716.41
5.4.10.3800.04016.22
5.4.00.3370.03715.99
5.3.290.3000.03314.70
5.3.280.3330.03314.61
5.3.270.1900.05014.49
5.3.260.3870.03714.52
5.3.250.4070.02714.60
5.3.240.3830.03714.61
5.3.230.3900.03014.65
5.3.220.3800.03314.72
5.3.210.3630.03314.57
5.3.200.3930.04314.57
5.3.190.3530.04014.45
5.3.180.3830.03714.71
5.3.170.3900.04314.58
5.3.160.3800.03714.71
5.3.150.3830.03314.63
5.3.140.3800.03714.61
5.3.130.3830.03714.54
5.3.120.3970.04314.54
5.3.110.3630.03714.62
5.3.100.3600.03714.18
5.3.90.3770.03314.05
5.3.80.3930.03314.05
5.3.70.3730.03013.90
5.3.60.3600.04313.89
5.3.50.3600.03314.00
5.3.40.3830.04013.86
5.3.30.3330.03713.83
5.3.20.3870.03713.75
5.3.10.4030.05013.68
5.3.00.3930.02713.69
5.2.170.3000.03011.29
5.2.160.3130.02711.16
5.2.150.3030.02711.18
5.2.140.3470.03311.14
5.2.130.3030.03311.10
5.2.120.3370.02011.09
5.2.110.3170.03011.06
5.2.100.3230.03011.17
5.2.90.3930.03011.16
5.2.80.3130.03011.14
5.2.70.3430.03711.24
5.2.60.3070.03011.04
5.2.50.3030.02711.01
5.2.40.2800.03011.03
5.2.30.2430.02710.91
5.2.20.2500.02711.00
5.2.10.2600.02710.74
5.2.00.2400.03010.63
5.1.60.2630.0279.90
5.1.50.2430.0239.96
5.1.40.2630.0239.95
5.1.30.2600.02310.29
5.1.20.2830.02710.40
5.1.10.2830.02310.05
5.1.00.2600.03310.22
5.0.50.1500.0238.63
5.0.40.1300.0208.40
5.0.30.1570.0308.21
5.0.20.1230.0178.16
5.0.10.1300.0108.19
5.0.00.1470.0308.22
4.4.90.1430.0176.21
4.4.80.1400.0176.21
4.4.70.1370.0206.21
4.4.60.1430.0176.21
4.4.50.1470.0206.21
4.4.40.1230.0236.21
4.4.30.1470.0176.21
4.4.20.1370.0206.21
4.4.10.1200.0176.21
4.4.00.1370.0276.21
4.3.110.1200.0136.21
4.3.100.1270.0176.21
4.3.90.1500.0176.21
4.3.80.1400.0276.21
4.3.70.1430.0106.21
4.3.60.1400.0176.21
4.3.50.1770.0136.21
4.3.40.1830.0236.21
4.3.30.0970.0206.21
4.3.20.0970.0176.21
4.3.10.0970.0236.21
4.3.00.0930.0206.21