3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $A = array(); $A[0] = 5; $b = &$A[0]; echo $b . "\n"; $C = $A; $C[0] = 10; echo $A[0];

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.0040.01119.41
7.1.100.0000.00917.93
7.1.70.0150.00317.00
7.1.60.0060.01319.70
7.1.50.0060.01316.63
7.1.00.0070.07322.36
7.0.200.0050.00216.79
7.0.140.0070.07021.95
7.0.60.0100.08020.00
7.0.50.0070.08017.81
7.0.40.0000.04720.04
7.0.30.0270.05720.09
7.0.20.0230.08320.01
7.0.10.0030.06320.20
7.0.00.0070.08020.09
5.6.280.0070.07320.92
5.6.210.0100.06020.50
5.6.200.0000.09018.18
5.6.190.0000.08020.37
5.6.180.3470.04720.62
5.6.170.0300.07320.33
5.6.160.0170.06720.37
5.6.150.0070.08018.18
5.6.140.0100.07318.17
5.6.130.0000.04318.11
5.6.120.0100.08321.01
5.6.110.0070.04320.98
5.6.100.0030.05720.99
5.6.90.0170.07720.99
5.6.80.0070.03720.38
5.5.350.4230.03720.48
5.5.340.0030.04017.98
5.5.330.0070.04020.43
5.5.320.0270.03720.18
5.5.310.0300.08020.30
5.5.300.0070.08017.93
5.5.290.0100.07717.97
5.5.280.0030.04020.84
5.5.270.0030.07720.83
5.5.260.0130.06720.78
5.5.250.0030.08320.68
5.5.240.0100.08720.03
5.4.450.0200.04326.13
5.4.440.0130.04726.12
5.4.430.0270.05026.09
5.4.420.0500.04326.08
5.4.410.0400.03726.08
5.4.400.0170.03725.89
5.4.390.0270.04725.72
5.4.380.0200.05018.62
5.4.370.0100.06318.77
5.4.360.0230.06718.50
5.4.350.0070.06018.59
5.4.340.0230.04318.44
5.4.320.0060.03712.45
5.4.310.0070.03812.45
5.4.300.0080.04712.45
5.4.290.0080.05312.45
5.4.280.0140.04912.34
5.4.270.0080.04612.35
5.4.260.0080.05012.34
5.4.250.0100.04812.35
5.4.240.0080.04812.34
5.4.230.0060.05312.34
5.4.220.0060.05012.34
5.4.210.0080.04812.34
5.4.200.0090.04912.34
5.4.190.0040.05212.34
5.4.180.0130.04612.34
5.4.170.0120.04512.35
5.4.160.0070.04912.34
5.4.150.0090.04612.34
5.4.140.0080.05112.02
5.4.130.0070.04712.01
5.4.120.0080.05011.97
5.4.110.0100.04711.96
5.4.100.0090.04611.96
5.4.90.0080.05111.96
5.4.80.0090.05511.96
5.4.70.0080.04911.96
5.4.60.0100.04811.96
5.4.50.0100.05911.96
5.4.40.0170.05911.95
5.4.30.0190.08011.95
5.4.20.0080.04811.95
5.4.10.0050.05111.95
5.4.00.0130.06611.44
5.3.290.0130.05412.80
5.3.280.0100.07612.71
5.3.270.0110.06512.72
5.3.260.0110.05712.72
5.3.250.0070.05912.72
5.3.240.0100.05612.72
5.3.230.0110.05212.71
5.3.220.0100.07912.68
5.3.210.0110.06112.68
5.3.200.0060.06112.68
5.3.190.0100.04912.68
5.3.180.0030.05912.67
5.3.170.0050.06012.67
5.3.160.0080.06412.67
5.3.150.0130.05412.67
5.3.140.0130.05012.66
5.3.130.0050.07212.66
5.3.120.0090.06112.66
5.3.110.0140.05212.66
5.3.100.0110.04312.12
5.3.90.0040.04512.08
5.3.80.0080.04412.07
5.3.70.0090.03712.08
5.3.60.0060.05412.07
5.3.50.0040.05012.00
5.3.40.0100.05712.00
5.3.30.0100.05411.95
5.3.20.0090.05111.72
5.3.10.0110.04611.69
5.3.00.0100.04811.67
5.2.170.0060.0379.18
5.2.160.0100.0349.18
5.2.150.0080.0389.18
5.2.140.0130.0359.17
5.2.130.0050.0379.13
5.2.120.0060.0369.13
5.2.110.0030.0349.14
5.2.100.0070.0379.14
5.2.90.0060.0429.14
5.2.80.0080.0419.14
5.2.70.0060.0419.13
5.2.60.0070.0409.09
5.2.50.0100.0429.05
5.2.40.0110.0359.04
5.2.30.0040.0449.01
5.2.20.0060.0418.99
5.2.10.0090.0318.93
5.2.00.0050.0398.79
5.1.60.0030.0358.07
5.1.50.0090.0298.07
5.1.40.0070.0278.06
5.1.30.0090.0488.41
5.1.20.0050.0358.43
5.1.10.0040.0338.15
5.1.00.0060.0348.15
5.0.50.0040.0286.63
5.0.40.0080.0216.49
5.0.30.0090.0346.30
5.0.20.0030.0286.27
5.0.10.0050.0296.25
5.0.00.0070.0426.24
4.4.90.0070.0204.78
4.4.80.0050.0214.75
4.4.70.0060.0194.76
4.4.60.0050.0194.75
4.4.50.0050.0214.77
4.4.40.0040.0324.71
4.4.30.0050.0204.76
4.4.20.0090.0164.84
4.4.10.0060.0214.85
4.4.00.0050.0314.76
4.3.110.0050.0204.67
4.3.100.0040.0214.66
4.3.90.0040.0204.63
4.3.80.0060.0294.58
4.3.70.0020.0214.63
4.3.60.0030.0214.63
4.3.50.0050.0194.63
4.3.40.0030.0314.54
4.3.30.0000.0223.29
4.3.20.0030.0163.27
4.3.10.0030.0163.23
4.3.00.0000.02025.32