3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ar1 = array('a', 'b'); $ar2 = array('c', 'd'); print_r($ar1 + $ar2); print_r(array_merge($ar1, $ar2));

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.01719.12
7.1.100.0030.00718.02
7.1.70.0040.00416.91
7.1.60.0070.01719.82
7.1.50.0150.00616.87
7.1.00.0100.06722.57
7.0.200.0030.00716.88
7.0.140.0030.07022.08
7.0.60.0100.06019.86
7.0.50.0000.04317.85
7.0.40.0100.08020.09
7.0.30.0070.05320.06
7.0.20.0370.07320.21
7.0.10.0270.08020.05
7.0.00.0000.09720.24
5.6.280.0000.07720.90
5.6.210.0030.06320.71
5.6.200.0130.04718.16
5.6.190.0100.04320.46
5.6.180.4270.04020.41
5.6.170.0500.06720.44
5.6.160.0130.04020.52
5.6.150.0030.07318.18
5.6.140.0130.05018.15
5.6.130.0100.06718.14
5.6.120.0070.07720.89
5.6.110.0030.09021.11
5.6.100.0070.08020.98
5.6.90.0030.08021.12
5.6.80.0130.08020.36
5.6.70.0070.06020.38
5.5.350.0070.08020.46
5.5.340.0130.07717.95
5.5.330.0030.09020.29
5.5.320.0300.07020.30
5.5.310.0130.05020.26
5.5.300.0170.07717.91
5.5.290.0070.04017.98
5.5.280.0130.08020.86
5.5.270.0030.06020.78
5.5.260.0100.05020.71
5.5.250.0070.04020.59
5.5.240.0030.07020.32
5.4.450.0770.07719.45
5.4.440.0870.06019.59
5.4.430.0100.05719.59
5.4.420.0830.05019.64
5.4.410.0800.05019.32
5.4.400.0230.05318.74
5.4.390.0170.06018.52
5.4.380.0470.04718.73
5.4.370.0230.05718.62
5.4.360.0200.05718.68
5.4.350.0070.03812.00
5.4.340.0110.04512.00
5.4.320.0100.03912.48
5.4.310.0060.04512.48
5.4.300.0090.03212.48
5.4.290.0070.04112.47
5.4.280.0070.04112.38
5.4.270.0060.04912.37
5.4.260.0060.04712.38
5.4.250.0100.06018.78
5.4.240.0070.05318.95
5.4.230.0170.04019.09
5.4.220.0130.04718.76
5.4.210.0000.06018.65
5.4.200.0100.05718.70
5.4.190.0070.05318.76
5.4.180.0100.05018.90
5.4.170.0130.04718.83
5.4.160.0070.05718.98
5.4.150.0170.07019.08
5.4.140.0030.05716.46
5.4.130.0130.04316.57
5.4.120.0070.05016.61
5.4.110.0070.05016.56
5.4.100.0100.04316.33
5.4.90.0100.04716.41
5.4.80.0000.05716.54
5.4.70.0070.04716.57
5.4.60.0130.04016.55
5.4.50.0100.04716.36
5.4.40.0030.05016.59
5.4.30.0070.04716.30
5.4.20.0070.05716.38
5.4.10.0070.05016.45
5.4.00.0070.04715.83
5.3.290.0060.03912.80
5.3.280.0100.05014.67
5.3.270.0170.05314.59
5.3.260.0070.05314.60
5.3.250.0070.05014.58
5.3.240.0000.05714.57
5.3.230.0100.04714.61
5.3.220.0030.05714.72
5.3.210.0070.05314.64
5.3.200.0000.05314.62
5.3.190.0070.05014.65
5.3.180.0100.04714.77
5.3.170.0000.05314.64
5.3.160.0000.05714.63
5.3.150.0100.06714.64
5.3.140.0130.07014.63
5.3.130.0100.05314.70
5.3.120.0070.05014.72
5.3.110.0000.05714.62
5.3.100.0100.04314.03
5.3.90.0070.05013.99
5.3.80.0170.05714.09
5.3.70.0030.05314.07
5.3.60.0030.05314.06
5.3.50.0070.05013.91
5.3.40.0000.06014.02
5.3.30.0100.04713.92
5.3.20.0030.05013.86
5.3.10.0070.04713.54
5.3.00.0100.04313.71
5.2.170.0030.05711.13
5.2.160.0000.05311.20
5.2.150.0000.04311.12
5.2.140.0030.04311.15
5.2.130.0000.04311.25
5.2.120.0000.04711.09
5.2.110.0070.04311.04
5.2.100.0130.03011.07
5.2.90.0030.04311.16
5.2.80.0130.03311.15
5.2.70.0070.04011.17
5.2.60.0070.04011.26
5.2.50.0100.04711.19
5.2.40.0070.04311.05
5.2.30.0070.04010.95
5.2.20.0030.05010.92
5.2.10.0030.03710.94
5.2.00.0030.04010.80
5.1.60.0030.03310.22
5.1.50.0030.03310.05
5.1.40.0070.0309.91
5.1.30.0070.03310.41
5.1.20.0130.03710.43
5.1.10.0030.03310.15
5.1.00.0170.02310.11
5.0.50.0030.0278.39
5.0.40.0000.0278.45
5.0.30.0070.0378.11
5.0.20.0070.0238.27
5.0.10.0100.0238.13
5.0.00.0030.0408.35
4.4.90.0070.0176.77
4.4.80.0070.0176.77
4.4.70.0070.0176.77
4.4.60.0030.0206.77
4.4.50.0070.0176.77
4.4.40.0100.0276.77
4.4.30.0130.0106.77
4.4.20.0030.0206.77
4.4.10.0030.0206.77
4.4.00.0030.0306.77
4.3.110.0000.0306.77
4.3.100.0030.0206.77
4.3.90.0000.0206.77
4.3.80.0000.0376.77
4.3.70.0000.0206.77
4.3.60.0000.0236.77
4.3.50.0000.0336.77
4.3.40.0030.0306.77
4.3.30.0000.0236.77
4.3.20.0030.0206.77
4.3.10.0030.0276.77
4.3.00.0230.0237.09