3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 1; $b = array(2, 3); $arr = array(&$a, &$b[0], &$b[1]); $arr[1]++; $arr=1+$arr[0]++; echo $a; echo implode($b); ?>

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.60.0110.00416.72
7.2.00.0110.00719.52
7.1.200.0110.00015.63
7.1.100.0060.00918.38
7.1.70.0030.00617.33
7.1.60.0060.00617.05
7.1.50.0060.00617.07
7.1.40.0030.00916.68
7.1.30.0150.00016.39
7.1.20.0090.00316.97
7.1.10.0030.00716.61
7.1.00.0000.00816.77
7.0.200.0000.00816.53
7.0.190.0040.00416.80
7.0.180.0030.00916.32
7.0.170.0000.00816.38
7.0.160.0000.00716.39
7.0.150.0000.00816.16
7.0.140.0040.00416.18
7.0.130.0040.00416.40
7.0.120.0000.00816.77
7.0.110.0040.00416.29
7.0.100.0000.00916.45
7.0.90.0000.00716.59
7.0.80.0030.00616.54
7.0.70.0000.00716.48
7.0.60.0040.00816.20
7.0.50.0030.00616.29
7.0.40.0050.00315.80
7.0.30.0030.00515.80
7.0.20.0000.00715.80
7.0.10.0000.01015.80
7.0.00.0040.00415.80
hhvm-3.17.30.0200.088102.89
hhvm-3.15.40.0210.09697.07
hhvm-3.13.20.0240.092109.75
hhvm-3.12.140.0290.078110.54
hhvm-3.11.10.0320.096103.23
hhvm-3.10.10.0200.089100.02
5.6.300.0030.05120.67
5.6.290.0200.03920.92
5.6.280.0100.03921.09
5.6.270.0030.04221.03
5.6.260.0070.04120.89
5.6.250.0000.04520.89
5.6.240.0000.04320.82
5.6.230.0030.05020.75
5.6.220.0000.06320.81
5.6.210.0060.04120.59
5.6.200.0130.04220.82
5.6.190.0030.04620.82
5.6.180.0070.03720.81
5.6.170.0070.03920.98
5.6.160.0030.05020.92
5.6.150.0030.04620.81
5.6.140.0000.04421.00
5.6.130.0200.05920.75
5.6.120.0000.04520.81
5.6.110.0030.04620.81
5.6.100.0000.04720.84
5.6.90.0100.06020.81
5.6.80.0030.04120.42
5.6.70.0000.04420.35
5.6.60.0000.04520.19
5.6.50.0170.04020.30
5.6.40.0100.04520.41
5.6.30.0030.04820.40
5.6.20.0000.05120.18
5.6.10.0030.04120.11
5.6.00.0000.04320.17
5.5.380.0030.03717.55
5.5.370.0030.03817.48
5.5.360.0030.08417.45
5.5.350.0000.04317.45
5.5.340.0060.03617.98
5.5.330.0070.04317.95
5.5.320.0030.04417.95
5.5.310.0030.04517.70
5.5.300.0030.04217.97
5.5.290.0030.04318.03
5.5.280.0000.04917.84
5.5.270.0030.04318.02
5.5.260.0030.04617.98
5.5.250.0030.04117.51
5.5.240.0070.05117.41
5.5.230.0030.05017.37
5.5.220.0070.03317.37
5.5.210.0030.04617.49
5.5.200.0270.02717.10
5.5.190.0030.07017.38
5.5.180.0000.04017.38
5.5.160.0100.03317.21
5.5.150.0000.04417.41
5.5.140.0030.04617.43
5.5.130.0100.07917.18
5.5.120.0030.03717.36
5.5.110.0030.04217.37
5.5.100.0070.03917.14
5.5.90.0030.03817.31
5.5.80.0100.02917.27
5.5.70.0000.06317.27
5.5.60.0060.03517.27
5.5.50.0000.04017.22
5.5.40.0030.03717.27
5.5.30.0030.04417.21
5.5.20.0060.03816.94
5.5.10.0070.03917.29
5.5.00.0170.04117.26
5.4.450.0060.03819.49
5.4.440.0030.06319.35
5.4.430.0030.04419.17
5.4.420.0070.03719.15
5.4.410.0030.04019.18
5.4.400.0060.03519.11
5.4.390.0000.04819.00
5.4.380.0100.03519.14
5.4.370.0000.04319.07
5.4.360.0070.03419.10
5.4.350.0000.04519.05
5.4.340.0100.03318.83
5.4.320.0070.03918.91
5.4.310.0070.03619.14
5.4.300.0030.03619.16
5.4.290.0000.04919.07
5.4.280.0070.03319.09
5.4.270.0000.04319.09
5.4.260.0030.04019.16
5.4.250.0030.04618.82
5.4.240.0030.05019.06
5.4.230.0000.04119.11
5.4.220.0030.04319.00
5.4.210.0130.02718.85
5.4.200.0070.03218.99
5.4.190.0030.04018.97
5.4.180.0210.03819.01
5.4.170.0030.03819.18
5.4.160.0000.04219.08
5.4.150.0000.04518.86
5.4.140.0030.03816.70
5.4.130.0030.04516.43
5.4.120.0000.04116.39
5.4.110.0000.04716.63
5.4.100.0000.04116.46
5.4.90.0030.03316.57
5.4.80.0030.03716.48
5.4.70.0000.03716.64
5.4.60.0060.03216.63
5.4.50.0000.04116.55
5.4.40.0000.03816.69
5.4.30.0130.03916.65
5.4.20.0030.03916.43
5.4.10.0030.04616.61
5.4.00.0000.04716.11
5.3.290.0030.03915.80
5.3.280.0070.03615.80
5.3.270.0000.04615.80
5.3.260.0000.04115.80
5.3.250.0030.04315.80
5.3.240.0000.04415.80
5.3.230.0000.04215.80
5.3.220.0000.04315.80
5.3.210.0040.03515.80
5.3.200.0030.03815.80
5.3.190.0000.04315.80
5.3.180.0030.03815.80
5.3.170.0000.03815.80
5.3.160.0000.03815.80
5.3.150.0190.02215.80
5.3.140.0070.03915.80
5.3.130.0070.04015.80
5.3.120.0030.04215.80
5.3.110.0030.08515.80
5.3.100.0000.04215.80
5.3.90.0030.03515.80
5.3.80.0000.03815.80
5.3.70.0000.03715.80
5.3.60.0000.04615.80
5.3.50.0030.03315.80
5.3.40.0070.03415.80
5.3.30.0030.03315.80
5.3.20.0000.03915.80
5.3.10.0070.02815.80
5.3.00.0030.03715.80
5.2.170.0000.03115.80
5.2.160.0000.03015.80
5.2.150.0030.02915.80
5.2.140.0030.02815.80
5.2.130.0030.02715.80
5.2.120.0000.03315.80
5.2.110.0040.02615.80
5.2.100.0030.02915.80
5.2.90.0000.03115.80
5.2.80.0000.03715.80
5.2.70.0000.03015.80
5.2.60.0030.02715.80
5.2.50.0030.03115.80
5.2.40.0000.03115.80
5.2.30.0030.02715.80
5.2.20.0000.02915.80
5.2.10.0000.03315.80
5.2.00.0000.03415.80
5.1.60.0030.02215.80
5.1.50.0060.01915.80
5.1.40.0030.02215.80
5.1.30.0100.02315.80
5.1.20.0070.02115.80
5.1.10.0000.02615.80
5.1.00.0030.02315.80
5.0.50.0000.02215.80
5.0.40.0030.02015.80
5.0.30.0000.03215.80
5.0.20.0000.02215.80
5.0.10.0030.01715.80
5.0.00.0030.03115.80
4.4.90.0030.01315.80
4.4.80.0090.01515.80
4.4.70.0030.01315.80
4.4.60.0000.01615.80
4.4.50.0000.01815.80
4.4.40.0000.02515.80
4.4.30.0030.01515.80
4.4.20.0030.01315.80
4.4.10.0000.01615.80
4.4.00.0030.02515.80
4.3.110.0000.01615.80
4.3.100.0000.01815.80
4.3.90.0030.01315.80
4.3.80.0040.02115.80
4.3.70.0030.01315.80
4.3.60.0030.01315.80
4.3.50.0000.01615.80
4.3.40.0000.02415.80
4.3.30.0000.02015.80
4.3.20.0100.01015.80
4.3.10.0030.01315.80
4.3.00.0030.01315.80