3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $u=array('a'=>1); $p=array('a'=>2); var_dump($p+$u);

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.1.70.0030.01317.05
7.1.60.0120.00319.82
7.1.50.0130.01016.84
7.1.00.0070.03022.27
7.0.200.0000.00716.54
7.0.140.0070.07022.09
7.0.70.3600.03319.95
7.0.60.0100.07719.96
7.0.50.0030.04017.88
7.0.40.0170.08020.02
7.0.30.0270.03720.16
7.0.20.0270.08020.16
7.0.10.0370.07320.09
7.0.00.0070.04020.30
5.6.280.0030.07320.86
5.6.210.0130.04720.69
5.6.200.0170.07718.08
5.6.190.0230.04720.32
5.6.180.0300.08320.38
5.6.170.0470.04720.45
5.6.160.0030.07320.37
5.6.150.0030.07718.15
5.6.140.0070.04718.10
5.6.130.0100.07318.09
5.6.120.0070.04320.96
5.6.110.0130.07321.13
5.6.100.0070.04020.97
5.6.90.0100.08020.87
5.6.80.0100.06320.36
5.6.70.0230.07320.37
5.5.350.0100.06720.32
5.5.340.0170.04317.98
5.5.330.0070.08020.57
5.5.320.0170.07020.40
5.5.310.0270.07320.12
5.5.300.0070.08017.94
5.5.290.0100.08017.98
5.5.280.0100.08020.87
5.5.270.0100.08020.88
5.5.260.0130.07720.95
5.5.250.0000.04720.68
5.5.240.0030.07720.26
5.4.450.0600.05719.10
5.4.440.0130.05319.24
5.4.430.0770.05319.48
5.4.420.0200.04319.31
5.4.410.0970.05319.45
5.4.400.0330.06019.20
5.4.390.0700.06019.10
5.4.380.0230.05718.66
5.4.370.0200.06018.68
5.4.360.0370.04018.56
5.4.350.0080.03311.97
5.4.340.0030.03911.97
5.4.320.0040.03812.45
5.4.310.0060.03812.45
5.4.300.0050.04912.45
5.4.290.0100.04812.45
5.4.280.0040.04012.35
5.4.270.0080.03812.35
5.4.260.0070.05018.68
5.4.250.0200.05018.63
5.4.240.0070.07718.82
5.4.230.0070.05718.77
5.4.220.0170.04718.80
5.4.210.0070.05018.93
5.4.200.0170.04018.94
5.4.190.0200.06318.77
5.4.180.0170.05318.70
5.4.170.0170.05318.95
5.4.160.0200.05018.56
5.4.150.0070.05718.82
5.4.140.0070.05316.21
5.4.130.0130.05016.47
5.4.120.0000.07716.34
5.4.110.0070.06316.43
5.4.100.0070.05316.31
5.4.90.0130.05016.27
5.4.80.0130.04716.26
5.4.70.0070.07316.31
5.4.60.0030.06316.21
5.4.50.0030.05016.26
5.4.40.0130.04316.44
5.4.30.0000.05316.20
5.4.20.0030.05016.30
5.4.10.0100.07716.17
5.4.00.0070.07015.89
5.3.290.0060.03812.80
5.3.280.0070.05014.74
5.3.270.0000.06714.52
5.3.260.0170.05014.61
5.3.250.0070.05714.30
5.3.240.0170.05314.52
5.3.230.0070.07714.68
5.3.220.0070.05014.60
5.3.210.0130.05714.61
5.3.200.0070.06014.65
5.3.190.0100.06314.58
5.3.180.0100.05014.60
5.3.170.0030.08014.60
5.3.160.0130.07014.61
5.3.150.0030.05314.56
5.3.140.0070.05014.64
5.3.130.0100.05014.24
5.3.120.0130.05014.63
5.3.110.0100.05314.55
5.3.100.0100.05714.13
5.3.90.0030.07714.05
5.3.80.0130.04314.16
5.3.70.0130.04713.96
5.3.60.0200.05313.87
5.3.50.0070.07013.95
5.3.40.0230.05314.04
5.3.30.0130.04313.92
5.3.20.0100.06313.70
5.3.10.0030.05013.50
5.3.00.0130.04713.68
5.2.170.0130.04310.90
5.2.160.0070.04011.14
5.2.150.0100.04311.14
5.2.140.0100.06011.07
5.2.130.0030.06011.19
5.2.120.0100.03311.00
5.2.110.0070.04011.11
5.2.100.0000.04311.03
5.2.90.0030.04311.02
5.2.80.0070.05011.08
5.2.70.0070.05011.09
5.2.60.0030.04310.97
5.2.50.0170.03011.04
5.2.40.0100.03710.91
5.2.30.0100.04011.07
5.2.20.0070.04010.96
5.2.10.0100.03710.69
5.2.00.0170.04010.80
5.1.60.0000.0379.90
5.1.50.0070.03010.05
5.1.40.0130.02710.12
5.1.30.0030.05310.35
5.1.20.0070.03710.42
5.1.10.0070.03310.30
5.1.00.0030.0379.98
5.0.50.0100.0238.68
5.0.40.0030.0278.45
5.0.30.0030.0408.41
5.0.20.0000.0308.14
5.0.10.0100.0208.40
5.0.00.0030.0408.11
4.4.90.0000.0237.30
4.4.80.0070.0177.30
4.4.70.0130.0107.30
4.4.60.0030.0277.30
4.4.50.0030.0207.30
4.4.40.0070.0407.30
4.4.30.0000.0237.30
4.4.20.0100.0207.30
4.4.10.0100.0207.30
4.4.00.0000.0337.30
4.3.110.0030.0237.30
4.3.100.0000.0207.30
4.3.90.0030.0177.30
4.3.80.0070.0307.30
4.3.70.0000.0207.30
4.3.60.0000.0237.30
4.3.50.0030.0207.30
4.3.40.0030.0407.30
4.3.30.0030.0237.30
4.3.20.0000.0237.30
4.3.10.0070.0207.30
4.3.00.0230.0337.02