3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = []; $array["a"] =& $array["b"]; $array["b"] = 1; var_dump($array);

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.2.10.0270.01317.69
7.2.00.0200.01317.85
7.1.130.0220.01016.86
7.1.120.0260.00716.71
7.1.110.0240.00716.36
7.1.100.0760.01016.89
7.1.90.0400.01316.28
7.1.80.0640.00716.22
7.1.70.0110.00915.90
7.1.60.0750.01233.84
7.1.50.0310.01033.38
7.1.40.0730.01433.10
7.1.30.0700.01033.26
7.1.20.0440.01633.28
7.1.10.1130.01014.71
7.1.00.0380.00915.39
7.0.270.0180.01516.55
7.0.260.0240.00616.23
7.0.250.0190.01015.82
7.0.240.1110.00716.58
7.0.230.1090.00415.81
7.0.220.0290.01016.44
7.0.210.1050.01114.71
7.0.200.0650.01115.56
7.0.190.0170.00615.29
7.0.180.0920.00915.04
7.0.170.0510.01314.96
7.0.160.0110.01115.03
7.0.150.0270.01015.13
7.0.140.0380.01215.10
7.0.130.1190.00914.64
7.0.120.0270.01014.73
7.0.110.0580.00615.18
7.0.100.0150.01014.43
7.0.90.0110.00714.96
7.0.80.0730.00814.43
7.0.70.0560.00915.00
7.0.60.0570.01114.30
7.0.50.0550.00915.10
7.0.40.0230.00914.64
7.0.30.0250.01015.31
7.0.20.0480.01015.26
7.0.10.0540.00915.27
7.0.00.1390.01214.61
hhvm-3.22.00.0880.19090.79
hhvm-3.21.30.0830.20390.04
hhvm-3.21.00.0860.17389.77
hhvm-3.20.20.0920.21890.24
hhvm-3.19.20.0950.22489.29
hhvm-3.18.50.0600.18588.31
hhvm-3.18.40.0760.18387.94
hhvm-3.17.30.0730.19787.15
hhvm-3.15.40.0710.18484.52
hhvm-3.13.20.0810.17895.69
hhvm-3.12.140.1000.19395.06
hhvm-3.11.10.0800.22687.26
hhvm-3.10.10.0770.18084.16
5.6.300.0190.06320.74
5.6.290.0110.05820.65
5.6.280.0100.07420.84
5.6.270.0160.06720.84
5.6.260.0150.05420.87
5.6.250.0100.06520.79
5.6.240.0170.06120.86
5.6.230.0090.07020.82
5.6.220.0110.06320.76
5.6.210.0150.06920.73
5.6.200.0150.06320.86
5.6.190.0110.06520.79
5.6.180.0160.06020.83
5.6.170.0140.06220.75
5.6.160.0150.06420.79
5.6.150.0180.05920.70
5.6.140.0170.05720.79
5.6.130.0140.05820.71
5.6.120.0110.06520.86
5.6.110.0120.06920.77
5.6.100.0190.06120.82
5.6.90.0240.05020.81
5.6.80.0150.05120.31
5.6.70.0160.05920.14
5.6.60.0140.05920.15
5.6.50.0090.06520.13
5.6.40.0070.05820.09
5.6.30.0090.06320.14
5.6.20.0140.05820.16
5.6.10.0060.06020.22
5.6.00.0110.05920.22
5.5.380.0150.06517.49
5.5.370.0110.05717.43
5.5.360.0110.07117.40
5.5.350.0140.05517.51
5.5.340.0180.05217.96
5.5.330.0120.05517.89
5.5.320.0140.05817.96
5.5.310.0090.06117.87
5.5.300.0140.05917.82
5.5.290.0080.06317.96
5.5.280.0110.05817.85
5.5.270.0120.06817.86
5.5.260.0170.05517.93
5.5.250.0120.05617.68
5.5.240.0100.05617.25
5.5.230.0110.06317.33
5.5.220.0120.06017.34
5.5.210.0080.05317.25
5.5.200.0150.05817.32
5.5.190.0080.06117.25
5.5.180.0090.06117.21
5.5.160.0120.05517.28
5.5.150.0210.05317.36
5.5.140.0140.05217.15
5.5.130.0150.05017.28
5.5.120.0080.06117.25
5.5.110.0140.05617.34
5.5.100.0130.05517.10
5.5.90.0090.05717.13
5.5.80.0070.06317.18
5.5.70.0200.05117.18
5.5.60.0130.05317.08
5.5.50.0180.05417.12
5.5.40.0050.06117.19
5.5.30.0150.05217.09
5.5.20.0100.06017.15
5.5.10.0100.05617.16
5.5.00.0070.05817.02
5.4.450.0160.05719.39
5.4.440.0210.05219.23
5.4.430.0200.05619.27
5.4.420.0110.06019.32
5.4.410.0180.05419.12
5.4.400.0040.05918.95
5.4.390.0100.06319.02
5.4.380.0090.06018.99
5.4.370.0140.04819.02
5.4.360.0050.06418.93
5.4.350.0100.05319.00
5.4.340.0140.05818.95
5.4.320.0130.05518.97
5.4.310.0150.05818.96
5.4.300.0140.05418.99
5.4.290.0160.04818.99
5.4.280.0110.05618.96
5.4.270.0170.05818.98
5.4.260.0140.05919.02
5.4.250.0110.05918.91
5.4.240.0200.06618.99
5.4.230.0160.06419.05
5.4.220.0160.06119.02
5.4.210.0110.05319.05
5.4.200.0170.05118.97
5.4.190.0120.05518.95
5.4.180.0110.06119.00
5.4.170.0120.05619.06
5.4.160.0120.06318.87
5.4.150.0110.06118.89
5.4.140.0160.06116.48
5.4.130.0120.06016.45
5.4.120.0130.05016.54
5.4.110.0120.06216.50
5.4.100.0130.05116.53
5.4.90.0100.05016.58
5.4.80.0140.05016.43
5.4.70.0130.05116.55
5.4.60.0070.05916.51
5.4.50.0100.04916.45
5.4.40.0100.05116.52
5.4.30.0100.05116.48
5.4.20.0120.05316.40
5.4.10.0120.05516.44
5.4.00.0140.04815.85
5.3.290.0080.06114.83
5.3.280.0110.05414.72
5.3.270.0100.06114.67
5.3.260.0090.05514.65
5.3.250.0120.06214.68
5.3.240.0190.05714.58
5.3.230.0110.05614.76
5.3.220.0140.05214.66
5.3.210.0110.06414.70
5.3.200.0060.05614.66
5.3.190.0140.05014.61
5.3.180.0110.05814.63
5.3.170.0100.05514.66
5.3.160.0150.05214.68
5.3.150.0090.05214.71
5.3.140.0130.04814.59
5.3.130.0120.05514.65
5.3.120.0110.05314.63
5.3.110.0100.05614.64
5.3.100.0140.04414.08
5.3.90.0140.04914.02
5.3.80.0070.05613.98
5.3.70.0100.05414.12
5.3.60.0080.06213.95
5.3.50.0130.05413.97
5.3.40.0060.05213.97
5.3.30.0130.04413.94
5.3.20.0160.04313.82
5.3.10.0120.04413.68
5.3.00.0080.06113.70
5.2.170.0080.04711.24
5.2.160.0060.04411.28
5.2.150.0100.04111.26
5.2.140.0100.03911.24
5.2.130.0050.04611.08
5.2.120.0060.04011.18
5.2.110.0080.04011.14
5.2.100.0070.04311.18
5.2.90.0050.05011.23
5.2.80.0100.04111.23
5.2.70.0080.04411.24
5.2.60.0070.04411.22
5.2.50.0060.04911.15
5.2.40.0130.03810.98
5.2.30.0090.04111.14
5.2.20.0090.03911.13
5.2.10.0090.04410.97
5.2.00.0070.04310.90
5.1.60.0080.03110.15
5.1.50.0090.03210.14
5.1.40.0060.03710.17
5.1.30.0090.03710.55
5.1.20.0080.04010.58
5.1.10.0080.03810.26
5.1.00.0100.03610.23
5.0.50.0070.0298.85
5.0.40.0030.0358.72
5.0.30.0040.0478.68
5.0.20.0090.0268.67
5.0.10.0090.0298.54
5.0.00.0050.0438.68
4.4.90.0060.0227.40
4.4.80.0070.0207.40
4.4.70.0020.0237.40
4.4.60.0020.0237.40
4.4.50.0100.0167.40
4.4.40.0050.0367.40
4.4.30.0060.0197.40
4.4.20.0060.0227.40
4.4.10.0060.0237.40
4.4.00.0020.0357.40
4.3.110.0030.0237.40
4.3.100.0060.0227.40
4.3.90.0050.0227.40
4.3.80.0060.0347.40
4.3.70.0070.0207.40
4.3.60.0080.0197.40
4.3.50.0050.0217.40
4.3.40.0100.0327.40
4.3.30.0070.0207.40
4.3.20.0030.0227.40
4.3.10.0060.0197.40
4.3.00.0040.0217.40