3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = array('a'=>'x', 't'=>'b', 'c'=>'z'); $y = array(1,2,3); var_dump(array_combine($x, $y));

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.00.0000.01816.45
7.2.130.0090.00616.89
7.2.120.0030.01016.53
7.2.110.0100.00316.73
7.2.100.0000.01216.68
7.2.90.0120.00316.80
7.2.80.0030.00816.88
7.2.70.0000.01416.59
7.2.60.0000.01316.80
7.2.50.0100.00616.77
7.2.40.0030.00716.80
7.2.30.0070.00716.83
7.2.20.0110.00416.86
7.2.10.0030.01416.54
7.2.00.0050.00817.79
7.1.250.0030.00615.88
7.1.240.0060.00315.67
7.1.230.0050.00515.67
7.1.220.0040.01215.79
7.1.210.0120.00315.86
7.1.200.0060.00815.66
7.1.190.0110.00415.85
7.1.180.0000.01315.85
7.1.170.0070.00315.79
7.1.160.0060.00615.64
7.1.150.0110.00315.73
7.1.140.0070.00715.76
7.1.130.0060.00315.81
7.1.120.0100.00315.82
7.1.110.0100.00015.57
7.1.100.0070.00717.02
7.1.90.0070.00415.63
7.1.80.0030.01015.65
7.1.70.0020.00716.42
7.1.60.0070.01117.64
7.1.50.0070.00316.32
7.1.40.0090.00615.77
7.1.30.0090.00015.70
7.1.20.0110.00415.49
7.1.10.0080.00315.63
7.1.00.0080.03118.94
7.0.330.0090.00915.28
7.0.320.0040.01115.24
7.0.310.0030.01215.22
7.0.300.0000.01215.52
7.0.290.0120.00315.07
7.0.280.0000.01114.95
7.0.270.0060.00615.13
7.0.260.0060.00915.29
7.0.250.0030.01215.33
7.0.240.0030.01015.31
7.0.230.0040.01115.48
7.0.220.0090.00615.16
7.0.210.0060.00615.40
7.0.200.0020.00915.91
7.0.190.0060.00815.39
7.0.180.0040.01215.41
7.0.170.0060.00615.41
7.0.160.0130.00015.20
7.0.150.0080.00815.38
7.0.140.0070.03518.55
7.0.130.0030.01015.37
7.0.120.0050.01718.65
7.0.110.0040.00715.15
7.0.100.0030.00515.45
7.0.90.0090.00015.20
7.0.80.0060.00615.40
7.0.70.0040.01115.21
7.0.60.0030.02417.51
7.0.50.0070.02116.62
7.0.40.0020.04215.67
7.0.30.0070.04315.46
7.0.20.0090.03015.36
7.0.10.0050.02715.54
7.0.00.0070.03015.60
5.6.380.0060.00314.19
5.6.370.0030.01014.14
5.6.360.0130.00313.64
5.6.350.0090.00613.75
5.6.340.0170.00014.01
5.6.330.0000.01213.91
5.6.320.0070.00414.28
5.6.310.0060.00614.46
5.6.300.0030.00913.98
5.6.290.0030.01014.01
5.6.280.0050.03817.42
5.6.270.0000.01714.50
5.6.260.0070.00714.12
5.6.250.0040.00813.80
5.6.240.0070.00714.34
5.6.230.0060.00614.47
5.6.220.0040.01113.80
5.6.210.0090.04117.39
5.6.200.0030.02616.07
5.6.190.0090.02016.21
5.6.180.0050.02816.03
5.6.170.0030.04716.07
5.6.160.0030.04516.12
5.6.150.0050.04516.02
5.6.140.0050.02816.07
5.6.130.0050.03016.04
5.6.120.0070.04416.26
5.6.110.0050.02516.05
5.6.100.0020.02816.21
5.6.90.0070.02616.25
5.6.80.0020.03215.79
5.6.70.0120.03015.79
5.6.60.0070.02815.89
5.6.50.0020.03516.01
5.6.40.0100.04315.78
5.6.30.0080.04715.83
5.6.20.0040.02715.76
5.6.10.0030.04215.84
5.6.00.0090.04415.88
5.5.380.0030.00611.60
5.5.370.0030.00611.60
5.5.360.0080.00311.60
5.5.350.0190.03916.03
5.5.340.0010.02314.79
5.5.330.0060.02814.82
5.5.320.0070.01814.78
5.5.310.0070.03914.75
5.5.300.0050.02514.79
5.5.290.0070.02214.81
5.5.280.0050.04014.75
5.5.270.0100.03214.75
5.5.260.0030.03514.78
5.5.250.0070.02014.68
5.5.240.0000.02814.50
5.5.230.0050.04014.48
5.5.220.0070.04914.45
5.5.210.0050.02514.43
5.5.200.0050.02214.44
5.5.190.0070.02814.45
5.5.180.0020.02614.43
5.5.170.0070.00411.60
5.5.160.0140.03014.44
5.5.150.0060.02814.45
5.5.140.0040.02314.48
5.5.130.0040.02714.41
5.5.120.0030.04514.42
5.5.110.0060.04114.43
5.5.100.0120.03514.38
5.5.90.0060.02314.38
5.5.80.0070.03814.43
5.5.70.0050.04414.41
5.5.60.0080.03714.44
5.5.50.0170.03014.40
5.5.40.0040.02814.43
5.5.30.0020.04814.37
5.5.20.0020.03814.38
5.5.10.0120.01814.41
5.5.00.0080.02614.39
5.4.450.0070.03215.51
5.4.440.0040.02315.47
5.4.430.0030.03815.45
5.4.420.0050.02315.45
5.4.410.0070.03015.46
5.4.400.0020.04215.21
5.4.390.0100.03615.24
5.4.380.0030.03115.29
5.4.370.0070.03515.31
5.4.360.0020.02415.30
5.4.350.0070.03015.30
5.4.340.0030.02415.29
5.4.330.0060.00311.60
5.4.320.0060.03615.30
5.4.310.0060.02115.35
5.4.300.0020.02515.21
5.4.290.0050.04315.29
5.4.280.0050.03815.25
5.4.270.0130.03115.27
5.4.260.0070.03615.28
5.4.250.0070.04015.28
5.4.240.0080.03515.27
5.4.230.0090.03815.36
5.4.220.0050.04315.36
5.4.210.0030.03815.36
5.4.200.0050.03215.33
5.4.190.0050.04015.30
5.4.180.0070.03515.30
5.4.170.0050.04215.34
5.4.160.0070.03815.39
5.4.150.0040.02915.35
5.4.140.0070.02513.96
5.4.130.0050.04013.88
5.4.120.0080.03813.95
5.4.110.0030.02314.00
5.4.100.0030.03313.94
5.4.90.0060.02014.02
5.4.80.0070.02314.00
5.4.70.0030.02213.97
5.4.60.0050.03013.95
5.4.50.0100.03213.91
5.4.40.0120.03014.00
5.4.30.0070.03313.92
5.4.20.0070.03813.92
5.4.10.0070.02614.00
5.4.00.0060.04013.70
5.3.290.0090.03113.17
5.3.280.0100.03613.08
5.3.270.0030.03813.02
5.3.260.0070.04213.06
5.3.250.0030.03613.07
5.3.240.0030.03412.99
5.3.230.0100.03013.09
5.3.220.0030.02213.06
5.3.210.0000.02512.97
5.3.200.0080.01813.00
5.3.190.0070.03813.06
5.3.180.0100.02812.98
5.3.170.0020.03113.04
5.3.160.0050.03813.05
5.3.150.0100.03413.04
5.3.140.0050.03313.07
5.3.130.0070.03513.05
5.3.120.0050.02513.03
5.3.110.0120.03513.11
5.3.100.0050.04012.86
5.3.90.0070.03312.73
5.3.80.0080.02712.77
5.3.70.0060.04112.73
5.3.60.0070.03512.79
5.3.50.0050.03512.75
5.3.40.0110.03212.74
5.3.30.0100.03412.71
5.3.20.0020.04212.62
5.3.10.0020.02612.60
5.3.00.0030.04112.60
5.2.170.0050.03211.37
5.2.160.0100.02811.37
5.2.150.0030.03511.33
5.2.140.0030.03611.36
5.2.130.0050.03411.32
5.2.120.0050.03511.34
5.2.110.0070.03211.32
5.2.100.0070.03311.32
5.2.90.0070.03011.42
5.2.80.0050.03311.23
5.2.70.0080.02711.33
5.2.60.0020.03511.32
5.2.50.0080.03111.29
5.2.40.0030.02811.29
5.2.30.0030.02311.25
5.2.20.0050.01511.24
5.2.10.0050.02311.20
5.2.00.0020.02411.08
5.1.60.0050.01810.83
5.1.50.0020.03210.88
5.1.40.0060.02110.80
5.1.30.0020.02310.98
5.1.20.0050.03110.89
5.1.10.0080.02710.86
5.1.00.0040.02710.82
5.0.50.0060.02310.11
5.0.40.0020.02510.08
5.0.30.0030.0259.82
5.0.20.0030.0139.93
5.0.10.0020.0229.90
5.0.00.0050.0349.90
4.4.90.0070.0139.78
4.4.80.0050.0179.78
4.4.70.0020.0199.78
4.4.60.0000.0219.78
4.4.50.0050.0209.78
4.4.40.0000.0199.78
4.4.30.0050.0179.78
4.4.20.0050.0189.78
4.4.10.0010.0199.78
4.4.00.0010.0169.78
4.3.110.0020.0129.78
4.3.100.0030.0109.78
4.3.90.0040.0139.78
4.3.80.0050.0159.78
4.3.70.0030.0109.78
4.3.60.0020.0129.78
4.3.50.0030.0209.78
4.3.40.0050.0259.78
4.3.30.0040.0089.78
4.3.20.0030.0209.78
4.3.10.0040.0159.78
4.3.00.0000.0219.78