3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array("foo" => "bar"); echo "Give me {$a[foo]}";

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.110.0150.00816.29
7.2.100.0210.00816.72
7.2.90.0200.00816.36
7.2.80.0240.00516.63
7.2.70.0180.00417.00
7.2.60.0110.00516.92
7.2.50.0110.00716.88
7.2.40.0110.00816.78
7.2.30.0260.00716.72
7.2.20.0160.00516.79
7.2.10.0670.00316.93
7.2.00.0150.00618.03
7.1.230.0240.00015.70
7.1.220.0030.01015.75
7.1.210.0200.00815.70
7.1.200.0120.00415.68
7.1.190.0220.00515.73
7.1.180.0220.00515.47
7.1.170.0070.01115.67
7.1.160.0090.00915.76
7.1.150.0140.00715.72
7.1.140.0160.00315.53
7.1.130.0080.01115.51
7.1.120.0150.00615.88
7.1.110.0150.01115.79
7.1.100.0070.00717.02
7.1.90.0440.00415.51
7.1.80.0270.00315.68
7.1.70.0080.00516.44
7.1.60.0100.01317.52
7.1.50.0280.01316.33
7.1.40.0170.00915.72
7.1.30.0280.01515.97
7.1.20.0130.00515.64
7.1.10.0400.00615.41
7.1.00.0170.02619.14
7.0.310.0160.00415.31
7.0.300.0060.01015.24
7.0.290.0120.00915.09
7.0.280.0170.00014.91
7.0.270.0380.00415.22
7.0.260.0140.00515.38
7.0.250.0110.00515.49
7.0.240.0090.00415.29
7.0.230.0290.00815.32
7.0.220.0140.00315.23
7.0.210.0100.00715.45
7.0.200.0050.00716.01
7.0.190.0340.00915.29
7.0.180.0160.00315.49
7.0.170.0400.00415.48
7.0.160.0470.00715.19
7.0.150.0110.00815.46
7.0.140.0090.03818.72
7.0.130.0470.00715.30
7.0.120.0030.01415.26
7.0.110.0210.00015.25
7.0.100.0180.00015.11
7.0.90.0300.04617.53
7.0.80.0290.04417.50
7.0.70.0420.03517.60
7.0.60.0290.02617.74
7.0.50.0380.04317.64
7.0.40.0190.03716.69
7.0.30.0120.02516.68
7.0.20.0110.04616.70
7.0.10.0150.03816.69
7.0.00.0090.04416.60
hhvm-3.22.00.1100.13890.07
hhvm-3.21.30.1090.12890.53
hhvm-3.21.00.1090.14790.30
hhvm-3.20.20.0870.13689.44
hhvm-3.19.20.0910.13889.20
hhvm-3.18.50.0980.14688.59
hhvm-3.18.40.1140.13688.70
hhvm-3.17.30.1120.13086.84
hhvm-3.15.40.0710.12185.22
hhvm-3.13.20.1560.09796.23
hhvm-3.12.140.1010.13295.47
hhvm-3.11.10.1090.13687.08
hhvm-3.10.10.1000.11684.12
5.6.380.0100.00514.60
5.6.370.0200.00014.39
5.6.360.0160.00314.55
5.6.350.0130.00314.66
5.6.340.0110.00414.52
5.6.330.0000.01514.43
5.6.320.0070.00714.44
5.6.310.0130.00814.42
5.6.300.0120.00514.52
5.6.290.0160.00314.55
5.6.280.0140.03617.67
5.6.270.0120.00214.05
5.6.260.0200.00514.30
5.6.250.0220.00514.11
5.6.240.0150.00714.61
5.6.230.0130.03117.53
5.6.220.0170.03217.50
5.6.210.0120.03817.43
5.6.200.0120.03217.54
5.6.190.0110.04317.70
5.6.180.0140.03817.75
5.6.170.0110.04417.77
5.6.160.0080.04717.71
5.6.150.0120.03917.65
5.6.140.0120.04217.57
5.6.130.0060.04917.71
5.6.120.0120.04217.64
5.6.110.0110.04417.80
5.6.100.0120.04217.70
5.6.90.0100.04417.52
5.6.80.0140.03817.31
5.6.70.0190.03417.37
5.6.60.0210.04017.21
5.6.50.0100.02717.30
5.6.40.0070.03317.28
5.6.30.0100.02817.21
5.6.20.0150.02817.32
5.6.10.0150.02217.22
5.6.00.0110.03017.24
5.5.380.0180.00412.79
5.5.370.0090.02516.60
5.5.360.0100.04516.60
5.5.350.0140.02716.60
5.5.340.0090.02616.85
5.5.330.0070.04416.78
5.5.320.0090.03916.78
5.5.310.0090.04116.71
5.5.300.0120.04216.80
5.5.290.0060.04616.80
5.5.280.0080.02216.71
5.5.270.0110.03916.83
5.5.260.0070.03316.83
5.5.250.0050.04316.76
5.5.240.0100.04016.51
5.5.230.0070.03216.48
5.5.220.0070.03116.49
5.5.210.0030.03316.49
5.5.200.0090.03016.46
5.5.190.0070.03016.51
5.5.180.0060.04716.43
5.5.170.0160.00714.26
5.5.160.0100.03016.39
5.5.150.0130.03816.51
5.5.140.0070.02516.44
5.5.130.0070.02316.48
5.5.120.0080.02716.46
5.5.110.0140.03616.48
5.5.100.0090.04216.40
5.5.90.0180.03516.45
5.5.80.0120.03516.38
5.5.70.0110.03916.45
5.5.60.0090.02516.46
5.5.50.0060.04316.42
5.5.40.0090.03816.45
5.5.30.0080.04016.46
5.5.20.0120.03516.43
5.5.10.0140.03616.41
5.5.00.0100.04116.41
5.4.450.0050.04116.05
5.4.440.0140.03716.07
5.4.430.0050.04316.05
5.4.420.0130.04216.07
5.4.410.0040.04415.94
5.4.400.0150.03715.97
5.4.390.0110.04015.93
5.4.380.0090.03815.80
5.4.370.0070.02315.91
5.4.360.0070.04015.92
5.4.350.0090.02315.87
5.4.340.0120.02015.92
5.4.330.0110.00012.79
5.4.320.0060.02515.93
5.4.310.0070.02515.79
5.4.300.0130.03715.91
5.4.290.0080.03015.91
5.4.280.0100.02215.88
5.4.270.0100.04015.79
5.4.260.0090.03815.93
5.4.250.0080.03715.92
5.4.240.0120.03715.87
5.4.230.0130.03815.87
5.4.220.0130.03315.91
5.4.210.0090.02315.95
5.4.200.0070.02315.95
5.4.190.0130.03515.91
5.4.180.0030.02715.86
5.4.170.0130.03615.78
5.4.160.0060.04015.92
5.4.150.0030.04815.92
5.4.140.0050.04214.46
5.4.130.0100.03014.45
5.4.120.0120.03814.53
5.4.110.0080.03314.50
5.4.100.0120.02814.58
5.4.90.0070.03714.57
5.4.80.0090.02514.61
5.4.70.0100.02814.55
5.4.60.0040.03714.50
5.4.50.0090.02114.60
5.4.40.0060.02414.53
5.4.30.0060.04214.53
5.4.20.0110.02814.51
5.4.10.0050.02414.55
5.4.00.0070.04014.18
5.3.290.0070.03013.71
5.3.280.0080.04213.62
5.3.270.0060.04013.70
5.3.260.0040.03613.67
5.3.250.0130.03213.67
5.3.240.0120.03513.69
5.3.230.0070.03113.69
5.3.220.0040.03213.65
5.3.210.0040.03213.67
5.3.200.0080.04013.61
5.3.190.0110.02713.65
5.3.180.0050.02813.65
5.3.170.0040.03013.59
5.3.160.0130.01813.67
5.3.150.0060.03613.65
5.3.140.0070.04013.66
5.3.130.0030.03013.66
5.3.120.0070.02513.60
5.3.110.0060.03013.62
5.3.100.0060.02813.38
5.3.90.0090.04013.37
5.3.80.0060.02213.28
5.3.70.0070.03713.33
5.3.60.0120.03313.38
5.3.50.0050.02513.34
5.3.40.0050.04013.38
5.3.30.0030.02213.33
5.3.20.0120.02213.25
5.3.10.0080.03513.25
5.3.00.0000.04513.25
5.2.170.0110.03013.25
5.2.160.0070.02213.25
5.2.150.0080.02413.25
5.2.140.0070.03013.25
5.2.130.0030.03013.25
5.2.120.0100.02713.25
5.2.110.0060.02813.25
5.2.100.0090.03313.25
5.2.90.0050.03013.25
5.2.80.0050.03113.25
5.2.70.0070.03113.25
5.2.60.0050.02913.25
5.2.50.0060.02713.25
5.2.40.0080.02813.25
5.2.30.0060.03313.25
5.2.20.0060.03013.25
5.2.10.0030.03013.25
5.2.00.0050.01913.25
5.1.60.0050.02513.25
5.1.50.0050.01713.25
5.1.40.0080.01613.25
5.1.30.0020.03313.25
5.1.20.0050.02813.25
5.1.10.0030.02113.25
5.1.00.0070.02713.25
5.0.50.0040.02113.25
5.0.40.0070.01213.25
5.0.30.0000.02213.25
5.0.20.0080.01813.25
5.0.10.0060.02213.25
5.0.00.0030.03513.25
4.4.90.0040.02013.25
4.4.80.0050.01813.25
4.4.70.0030.02013.25
4.4.60.0020.02113.25
4.4.50.0070.01413.25
4.4.40.0010.01613.25
4.4.30.0060.01513.25
4.4.20.0020.01713.25
4.4.10.0040.01013.25
4.4.00.0060.01813.25
4.3.110.0030.01513.25
4.3.100.0040.01813.25
4.3.90.0020.01213.25
4.3.80.0000.02213.25
4.3.70.0040.00813.25
4.3.60.0040.01513.25
4.3.50.0000.02113.25
4.3.40.0030.01913.25
4.3.30.0020.01413.25
4.3.20.0040.01713.25
4.3.10.0030.02013.25
4.3.00.0030.01813.25