3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(); function blaat() { global $a; return $a['foo'] = "bar"; } print blaat()."\n"; print_r($a);

Here you find the average performance (time & memory) of each version. A greyed 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.0060.00917.25
7.1.60.0140.01019.46
7.1.50.0130.01016.96
7.1.00.0030.07722.57
7.0.200.0030.00316.63
7.0.140.0070.07022.15
7.0.60.0070.08019.86
7.0.50.0070.07717.88
7.0.40.0030.09020.24
7.0.30.0400.05720.23
7.0.20.0300.05320.19
7.0.10.0370.06720.23
7.0.00.0130.08320.32
5.6.280.0000.07020.86
5.6.210.0130.07320.52
5.6.200.0130.05718.20
5.6.190.0130.03720.60
5.6.180.3170.03720.30
5.6.170.0300.07320.54
5.6.160.0030.04320.62
5.6.150.0130.06318.21
5.6.140.0230.03718.27
5.6.130.0070.08318.15
5.6.120.0030.06020.98
5.6.110.0100.07021.05
5.6.100.0100.08321.05
5.6.90.0070.08020.98
5.6.80.0170.06320.29
5.6.70.0070.06320.50
5.5.350.0200.06720.47
5.5.340.0170.06317.98
5.5.330.0100.04020.44
5.5.320.0200.04020.27
5.5.310.0430.06720.24
5.5.300.0030.04018.02
5.5.290.0070.04717.95
5.5.280.0130.06720.74
5.5.270.0070.06720.97
5.5.260.0200.07020.79
5.5.250.0170.07720.50
5.5.240.0000.07720.16
5.4.450.0270.04719.48
5.4.440.0170.05719.60
5.4.430.0170.05319.54
5.4.420.0830.00019.41
5.4.410.0270.05019.00
5.4.400.0470.04718.76
5.4.390.0330.04718.78
5.4.380.0400.04018.75
5.4.370.0170.04318.61
5.4.360.0070.03718.58
5.4.350.0080.03212.02
5.4.340.0040.04112.02
5.4.320.0090.04412.51
5.4.310.0080.04212.50
5.4.300.0090.04112.51
5.4.290.0120.05112.50
5.4.280.0060.03912.40
5.4.270.0060.03912.40
5.4.260.0080.03812.39
5.4.250.0130.04412.39
5.4.240.0150.04412.40
5.4.230.0080.05512.39
5.4.220.0120.05212.39
5.4.210.0110.03312.39
5.4.200.0090.05512.39
5.4.190.0090.05512.39
5.4.180.0100.04712.39
5.4.170.0060.04312.40
5.4.160.0070.04212.39
5.4.150.0090.03812.39
5.4.140.0120.04712.07
5.4.130.0110.05312.06
5.4.120.0100.04112.01
5.4.110.0070.05312.02
5.4.100.0110.05212.01
5.4.90.0150.05512.01
5.4.80.0110.07112.02
5.4.70.0220.05812.01
5.4.60.0150.03212.01
5.4.50.0120.05312.01
5.4.40.0080.04512.00
5.4.30.0090.03611.99
5.4.20.0090.03811.99
5.4.10.0100.03911.99
5.4.00.0050.04711.48
5.3.290.0050.04612.80
5.3.280.0280.04812.71
5.3.270.0080.05912.73
5.3.260.0110.05412.72
5.3.250.0120.06012.72
5.3.240.0120.05712.72
5.3.230.0140.05712.71
5.3.220.0190.09812.68
5.3.210.0140.08712.68
5.3.200.0070.04612.68
5.3.190.0120.04312.68
5.3.180.0120.04612.67
5.3.170.0060.04412.67
5.3.160.0110.04512.68
5.3.150.0070.04112.67
5.3.140.0170.08212.66
5.3.130.0170.08812.65
5.3.120.0100.04912.66
5.3.110.0190.09212.65
5.3.100.0120.05012.12
5.3.90.0110.04812.09
5.3.80.0080.05412.09
5.3.70.0110.06012.09
5.3.60.0100.04612.07
5.3.50.0120.07512.02
5.3.40.0150.06612.02
5.3.30.0120.08111.97
5.3.20.0100.06511.76
5.3.10.0140.05011.73
5.3.00.0040.05911.71
5.2.170.0050.0449.21
5.2.160.0060.0389.21
5.2.150.0080.0709.22
5.2.140.0120.0509.21
5.2.130.0170.0859.18
5.2.120.0060.0669.18
5.2.110.0180.0899.18
5.2.100.0080.0339.17
5.2.90.0090.0299.17
5.2.80.0060.0379.16
5.2.70.0050.0379.16
5.2.60.0070.0339.13
5.2.50.0070.0339.09
5.2.40.0070.0369.07
5.2.30.0060.0399.04
5.2.20.0160.0559.03
5.2.10.0140.0508.93
5.2.00.0100.0388.80
5.1.60.0070.0308.09
5.1.50.0080.0278.09
5.1.40.0080.0418.05
5.1.30.0110.0268.41
5.1.20.0080.0288.43
5.1.10.0070.0308.16
5.1.00.0060.0328.16
5.0.50.0090.0266.63
5.0.40.0070.0256.50
5.0.30.0070.0366.30
5.0.20.0100.0246.27
5.0.10.0100.0356.25
5.0.00.0090.0506.25
4.4.90.0060.0344.78
4.4.80.0050.0174.75
4.4.70.0040.0194.75
4.4.60.0070.0224.76
4.4.50.0050.0184.77
4.4.40.0050.0264.71
4.4.30.0090.0284.75
4.4.20.0060.0264.84
4.4.10.0060.0234.84
4.4.00.0070.0434.76
4.3.110.0040.0364.66
4.3.100.0120.0344.66
4.3.90.0070.0234.63
4.3.80.0100.0334.58
4.3.70.0040.0254.63
4.3.60.0090.0414.62
4.3.50.0170.0354.63
4.3.40.0210.0684.54
4.3.30.0090.0363.29
4.3.20.0030.0233.27
4.3.10.0370.0493.23
4.3.00.0000.0236.90