3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array( 0 => 'x', 1 => 'y', 2 => 'z', ); echo $array[false]; echo $array[null];
based on FWXWg

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.3.0rc40.0150.00616.44
7.3.0rc30.0120.00616.68
7.3.0rc20.0060.01116.35
7.3.0rc10.0130.00716.62
7.3.0beta30.0800.00612.79
7.3.0beta20.0110.00412.79
7.3.0beta10.0630.00412.77
7.3.0alpha40.0120.00312.79
7.3.0alpha30.0140.00412.94
7.3.0alpha20.0420.00012.79
7.3.0alpha10.0210.00312.73
7.2.110.0130.00316.54
7.2.100.0100.00616.32
7.2.90.0100.00916.57
7.2.80.0190.00016.61
7.2.70.0110.00916.79
7.2.60.0090.00616.77
7.2.50.0120.00616.58
7.2.40.0170.00416.73
7.2.30.0110.00816.66
7.2.20.0070.00716.96
7.2.10.0100.00516.77
7.2.00.0140.00416.55
7.1.230.0000.01315.56
7.1.220.0070.01015.68
7.1.210.0150.00415.43
7.1.200.0070.00715.60
7.1.190.0100.00715.65
7.1.180.0040.01115.80
7.1.170.0100.00315.67
7.1.160.0440.00015.79
7.1.150.0070.00715.61
7.1.140.0120.00315.73
7.1.130.0070.00715.41
7.1.120.0320.00715.31
7.1.110.0150.00415.80
7.1.100.0070.01015.62
7.1.90.0160.00315.34
7.1.80.0170.00015.44
7.1.70.0080.00316.35
7.1.60.0090.00517.61
7.1.50.0080.01016.45
7.1.40.0180.00015.54
7.1.30.0160.00015.94
7.1.20.0140.00616.00
7.1.10.0110.00615.66
7.1.00.0020.04418.90
7.0.310.0170.00015.06
7.0.300.0080.00515.47
7.0.290.0060.01115.35
7.0.280.0120.00615.37
7.0.270.0140.00315.36
7.0.260.0110.00315.30
7.0.250.0170.00015.40
7.0.240.0110.00315.52
7.0.230.0460.00415.34
7.0.220.0040.00915.37
7.0.210.0090.00915.52
7.0.200.0110.00415.96
7.0.190.0110.00815.40
7.0.180.0090.00215.01
7.0.170.0050.01215.23
7.0.160.0090.00915.42
7.0.150.0160.00015.09
7.0.140.0070.03818.78
7.0.130.0700.00315.02
7.0.120.0090.00815.44
7.0.110.0110.00415.41
7.0.100.0110.04817.66
7.0.90.0110.04817.61
7.0.80.0130.04317.56
7.0.70.0210.04017.45
7.0.60.0200.04017.70
7.0.50.0210.04617.82
7.0.40.0180.03816.67
7.0.30.0030.05016.66
7.0.20.0130.03916.67
7.0.10.0120.04016.57
7.0.00.0030.05016.70
hhvm-3.22.00.1060.13290.15
hhvm-3.21.30.1120.11690.07
hhvm-3.21.00.0640.12789.68
hhvm-3.20.20.0760.12589.99
hhvm-3.19.20.0540.15189.73
hhvm-3.18.50.0750.13388.46
hhvm-3.18.40.0520.14788.21
hhvm-3.17.30.0670.13186.97
hhvm-3.15.40.0720.12084.97
hhvm-3.13.20.1120.13096.29
hhvm-3.12.140.0700.13095.50
hhvm-3.11.10.1230.11187.15
hhvm-3.10.10.0990.12084.38
5.6.380.0110.00714.37
5.6.370.0080.00814.47
5.6.360.0050.01014.33
5.6.350.0150.00314.29
5.6.340.0040.00914.15
5.6.330.0080.00514.38
5.6.320.0100.00714.11
5.6.310.0200.00013.93
5.6.300.0060.00614.55
5.6.290.0070.01014.19
5.6.280.0040.04217.62
5.6.270.0130.00314.70
5.6.260.0110.00714.43
5.6.250.0070.04717.56
5.6.240.0180.03317.45
5.6.230.0080.04317.39
5.6.220.0120.03917.45
5.6.210.0070.04417.32
5.6.200.0090.02917.70
5.6.190.0110.03917.66
5.6.180.0130.04017.71
5.6.170.0150.04017.69
5.6.160.0150.03717.78
5.6.150.0130.04117.60
5.6.140.0120.04317.63
5.6.130.0120.03317.75
5.6.120.0200.03517.66
5.6.110.0090.05317.73
5.6.100.0150.04217.64
5.6.90.0150.03917.62
5.6.80.0100.04317.29
5.6.70.0110.04117.24
5.6.60.0120.04317.34
5.6.50.0090.04717.15
5.6.40.0130.04317.37
5.6.30.0130.03817.40
5.6.20.0130.02917.30
5.6.10.0110.04317.33
5.6.00.0090.04317.29
5.5.380.0070.04216.60
5.5.370.0080.04516.59
5.5.360.0150.04016.63
5.5.350.0070.02916.59
5.5.340.0080.04016.82
5.5.330.0080.03816.81
5.5.320.0120.03716.83
5.5.310.0100.04016.83
5.5.300.0150.03416.82
5.5.290.0080.04316.82
5.5.280.0150.03716.84
5.5.270.0070.04316.84
5.5.260.0130.04016.77
5.5.250.0140.03716.70
5.5.240.0080.03816.52
5.5.230.0100.04016.51
5.5.220.0090.03016.53
5.5.210.0100.04216.47
5.5.200.0090.04016.52
5.5.190.0120.03716.47
5.5.180.0120.03016.46
5.5.170.0100.00814.00
5.5.160.0090.04116.47
5.5.150.0130.03916.52
5.5.140.0060.04616.45
5.5.130.0080.04316.46
5.5.120.0100.03816.45
5.5.110.0120.03916.46
5.5.100.0190.02016.47
5.5.90.0060.04116.38
5.5.80.0050.04116.45
5.5.70.0120.03916.41
5.5.60.0170.03316.37
5.5.50.0090.04016.42
5.5.40.0080.03816.39
5.5.30.0120.04016.44
5.5.20.0090.04216.47
5.5.10.0050.04616.46
5.5.00.0100.03716.44
5.4.450.0080.04016.14
5.4.440.0100.03116.07
5.4.430.0120.03716.01
5.4.420.0120.03816.17
5.4.410.0080.04115.94
5.4.400.0060.04415.93
5.4.390.0130.03215.79
5.4.380.0050.04015.96
5.4.370.0110.03715.80
5.4.360.0060.04215.81
5.4.350.0110.03715.94
5.4.340.0070.03515.88
5.4.330.0070.00712.79
5.4.320.0100.02315.87
5.4.310.0070.02515.92
5.4.300.0110.03615.77
5.4.290.0080.04315.87
5.4.280.0100.03515.92
5.4.270.0070.04015.95
5.4.260.0150.03315.84
5.4.250.0070.03715.91
5.4.240.0110.02115.84
5.4.230.0050.02315.90
5.4.220.0070.04415.90
5.4.210.0100.03815.88
5.4.200.0190.02815.89
5.4.190.0060.04015.89
5.4.180.0120.03516.00
5.4.170.0080.04515.96
5.4.160.0080.03915.85
5.4.150.0090.03815.90
5.4.140.0120.03714.56
5.4.130.0110.03614.55
5.4.120.0070.04014.55
5.4.110.0070.04114.53
5.4.100.0090.03714.56
5.4.90.0070.04014.51
5.4.80.0060.03614.55
5.4.70.0070.03514.52
5.4.60.0070.03614.49
5.4.50.0070.03614.53
5.4.40.0150.03014.58
5.4.30.0090.03214.51
5.4.20.0100.03714.49
5.4.10.0040.04114.58
5.4.00.0060.02814.23
5.3.290.0090.02213.64
5.3.280.0080.03513.62
5.3.270.0050.03113.68
5.3.260.0060.04113.62
5.3.250.0090.03913.67
5.3.240.0110.04013.69
5.3.230.0030.04013.66
5.3.220.0050.03113.60
5.3.210.0150.03413.63
5.3.200.0100.03513.64
5.3.190.0100.03213.63
5.3.180.0080.03813.68
5.3.170.0060.04013.68
5.3.160.0110.03313.59
5.3.150.0080.04013.60
5.3.140.0070.03513.67
5.3.130.0050.04013.66
5.3.120.0130.03313.65
5.3.110.0100.03613.62
5.3.100.0070.03813.34
5.3.90.0070.03613.40
5.3.80.0090.03913.39
5.3.70.0050.02813.37
5.3.60.0120.03313.32
5.3.50.0080.03513.24
5.3.40.0040.04013.30
5.3.30.0110.03813.33
5.3.20.0070.03713.23
5.3.10.0130.03313.23
5.3.00.0110.03313.23
5.2.170.0140.02013.23
5.2.160.0050.03313.23
5.2.150.0040.03613.23
5.2.140.0060.02813.23
5.2.130.0050.03313.23
5.2.120.0080.02913.23
5.2.110.0150.02713.23
5.2.100.0140.02913.23
5.2.90.0050.03113.23
5.2.80.0080.01813.23
5.2.70.0090.02513.23
5.2.60.0100.03013.23
5.2.50.0050.03413.23
5.2.40.0020.03713.23
5.2.30.0060.03113.23
5.2.20.0070.03213.23
5.2.10.0060.02813.23
5.2.00.0050.02513.23
5.1.60.0070.02513.23
5.1.50.0090.02213.23
5.1.40.0070.02813.23
5.1.30.0060.02313.23
5.1.20.0030.03213.23
5.1.10.0080.02813.23
5.1.00.0080.01813.23
5.0.50.0050.02213.23
5.0.40.0060.02013.23
5.0.30.0050.03013.23
5.0.20.0040.02413.23
5.0.10.0050.02513.23
5.0.00.0050.03313.23
4.4.90.0070.01513.23
4.4.80.0040.01713.23
4.4.70.0080.01613.23
4.4.60.0040.02013.23
4.4.50.0060.01013.23
4.4.40.0020.02813.23
4.4.30.0030.01813.23
4.4.20.0040.01913.23
4.4.10.0030.02113.23
4.4.00.0040.02813.23
4.3.110.0000.01513.23
4.3.100.0050.01713.23
4.3.90.0060.01613.23
4.3.80.0040.02713.23
4.3.70.0050.01813.23
4.3.60.0030.01713.23
4.3.50.0020.01913.23
4.3.40.0140.02013.23
4.3.30.0030.01613.23
4.3.20.0020.02113.23
4.3.10.0030.01813.23
4.3.00.0040.01513.23