3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array( 1 => 'dfdfdf', 2 => 'fsdfsdf' ); echo array_key_exists('1a', $a) ? 1 : 0;
based on ksYL6

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.00.0100.00316.48
7.2.130.0030.00716.71
7.2.120.0140.00716.79
7.2.110.0110.00716.68
7.2.100.0060.00916.59
7.2.90.0110.00416.49
7.2.80.0140.00316.91
7.2.70.0000.01516.60
7.2.60.0090.00716.76
7.2.50.0070.01016.86
7.2.40.0070.01116.50
7.2.30.0150.00516.76
7.2.20.0060.00916.43
7.2.10.0090.00916.44
7.2.00.0080.00518.05
7.1.250.0070.00715.63
7.1.240.0130.01015.77
7.1.230.0140.00715.72
7.1.220.0130.00715.41
7.1.210.0150.00315.50
7.1.200.0080.00515.56
7.1.190.0060.00615.68
7.1.180.0120.00415.59
7.1.170.0100.00315.58
7.1.160.0100.01015.40
7.1.150.0100.01015.51
7.1.140.0060.00615.48
7.1.130.0130.00315.52
7.1.120.0040.00815.46
7.1.110.0060.00615.62
7.1.100.0030.00716.78
7.1.90.0060.00915.55
7.1.80.0070.00715.45
7.1.70.0020.01316.15
7.1.60.0090.00616.38
7.1.50.0070.00716.29
7.1.40.0050.00716.06
7.1.30.0060.00616.10
7.1.20.0100.00315.88
7.1.10.0050.00515.86
7.1.00.0030.00916.06
7.0.330.0130.01015.08
7.0.320.0100.00715.43
7.0.310.0060.00915.26
7.0.300.0090.00615.37
7.0.290.0060.00915.09
7.0.280.0090.00614.93
7.0.270.0070.00715.17
7.0.260.0060.00615.21
7.0.250.0040.00715.31
7.0.240.0030.01014.91
7.0.230.0080.00415.13
7.0.220.0000.01114.82
7.0.210.0000.01614.99
7.0.200.0070.00515.94
7.0.190.0040.00415.75
7.0.180.0050.00515.74
7.0.170.0080.00315.49
7.0.160.0060.00415.54
7.0.150.0020.00715.68
7.0.140.0020.01015.47
7.0.130.0020.00615.88
7.0.120.0020.00815.77
7.0.110.0070.00315.85
7.0.100.0010.00715.67
7.0.90.0030.00715.65
7.0.80.0020.01116.03
7.0.70.0050.00815.75
7.0.60.0040.00415.71
7.0.50.0030.00515.92
7.0.40.0070.00214.72
7.0.30.0070.00314.53
7.0.20.0080.00314.76
7.0.10.0010.00614.65
7.0.00.0050.00514.72
hhvm-3.17.30.0240.09297.72
hhvm-3.15.40.0340.09397.80
hhvm-3.13.20.0340.095100.30
hhvm-3.12.140.0240.09599.95
hhvm-3.11.10.0720.10392.78
hhvm-3.10.10.0780.10989.42
5.6.380.0040.01114.23
5.6.370.0060.00314.06
5.6.360.0040.01114.30
5.6.350.0040.00814.10
5.6.340.0100.00314.11
5.6.330.0060.00313.90
5.6.320.0040.01113.93
5.6.310.0100.00314.23
5.6.300.0050.02317.48
5.6.290.0060.02017.38
5.6.280.0040.02617.57
5.6.270.0050.02517.48
5.6.260.0030.02517.27
5.6.250.0060.02217.47
5.6.240.0070.02217.54
5.6.230.0050.03317.55
5.6.220.0050.02217.44
5.6.210.0030.02817.32
5.6.200.0080.02017.61
5.6.190.0060.02017.43
5.6.180.0060.02117.52
5.6.170.0110.01517.34
5.6.160.0000.02817.47
5.6.150.0070.02517.61
5.6.140.0030.03117.47
5.6.130.0080.02517.42
5.6.120.0020.02617.58
5.6.110.0050.03717.45
5.6.100.0050.02217.50
5.6.90.0020.02717.42
5.6.80.0080.04817.18
5.6.70.0030.02517.01
5.6.60.0040.02717.22
5.6.50.0120.02417.02
5.6.40.0020.02617.12
5.6.30.0070.03117.06
5.6.20.0050.02317.13
5.6.10.0110.02117.17
5.6.00.0040.02517.10
5.5.380.0020.02414.37
5.5.370.0040.04014.31
5.5.360.0080.02014.29
5.5.350.0050.02314.32
5.5.340.0150.02014.64
5.5.330.0050.02114.60
5.5.320.0030.04414.57
5.5.310.0050.02114.62
5.5.300.0030.02414.63
5.5.290.0030.02614.57
5.5.280.0070.02214.61
5.5.270.0080.02014.49
5.5.260.0060.02214.61
5.5.250.0000.02814.43
5.5.240.0010.02614.29
5.5.230.0030.02514.29
5.5.220.0110.02314.26
5.5.210.0050.02114.18
5.5.200.0030.02314.32
5.5.190.0030.03914.24
5.5.180.0070.02114.26
5.5.170.0100.00011.18
5.5.160.0000.02814.26
5.5.150.0050.02014.28
5.5.140.0080.04114.29
5.5.130.0050.04914.23
5.5.120.0030.02414.17
5.5.110.0030.02114.23
5.5.100.0050.03714.06
5.5.90.0020.03314.22
5.5.80.0050.02214.22
5.5.70.0000.02414.18
5.5.60.0030.04214.21
5.5.50.0030.04114.22
5.5.40.0070.01914.07
5.5.30.0030.02214.22
5.5.20.0030.02214.22
5.5.10.0020.02714.07
5.5.00.0010.02714.23
5.4.450.0070.02415.28
5.4.440.0020.02815.24
5.4.430.0000.02815.24
5.4.420.0040.02715.27
5.4.410.0020.02215.11
5.4.400.0030.02214.99
5.4.390.0030.02215.01
5.4.380.0020.02214.99
5.4.370.0070.01814.99
5.4.360.0030.03215.01
5.4.350.0080.02315.11
5.4.340.0030.02315.17
5.4.330.0030.00611.18
5.4.320.0080.01915.15
5.4.310.0020.03115.04
5.4.300.0050.03515.11
5.4.290.0090.01715.12
5.4.280.0070.02115.03
5.4.270.0050.02015.03
5.4.260.0060.02315.09
5.4.250.0030.02215.12
5.4.240.0070.01815.02
5.4.230.0060.02515.09
5.4.220.0020.02415.09
5.4.210.0090.02915.12
5.4.200.0020.02415.00
5.4.190.0050.02215.07
5.4.180.0050.02315.15
5.4.170.0000.02815.08
5.4.160.0070.01915.02
5.4.150.0040.02215.07
5.4.140.0050.03913.91
5.4.130.0080.02313.78
5.4.120.0070.02013.76
5.4.110.0030.02213.89
5.4.100.0060.01813.87
5.4.90.0020.02713.89
5.4.80.0030.02313.89
5.4.70.0020.02513.91
5.4.60.0060.01913.79
5.4.50.0030.02713.87
5.4.40.0040.02513.78
5.4.30.0030.02413.78
5.4.20.0060.01813.75
5.4.10.0020.02413.76
5.4.00.0070.02013.63
5.3.290.0050.02013.56
5.3.280.0050.02213.56
5.3.270.0090.02213.56
5.3.260.0080.01713.56
5.3.250.0100.02213.56
5.3.240.0050.03513.56
5.3.230.0060.02613.56
5.3.220.0050.02213.56
5.3.210.0030.02513.56
5.3.200.0020.02613.56
5.3.190.0080.01513.56
5.3.180.0030.02613.56
5.3.170.0030.02013.56
5.3.160.0010.02113.56
5.3.150.0030.02213.56
5.3.140.0060.01613.56
5.3.130.0040.03313.56
5.3.120.0030.02313.56
5.3.110.0030.02113.56
5.3.100.0020.02313.56
5.3.90.0020.02413.56
5.3.80.0030.02213.56
5.3.70.0060.01913.56
5.3.60.0020.02113.56
5.3.50.0030.02613.56
5.3.40.0050.02213.56
5.3.30.0020.02113.56
5.3.20.0050.02413.56
5.3.10.0030.01713.56
5.3.00.0060.01913.56
5.2.170.0020.02113.56
5.2.160.0100.01313.56
5.2.150.0050.01713.56
5.2.140.0030.02213.56
5.2.130.0030.01513.56
5.2.120.0040.01613.56
5.2.110.0020.01813.56
5.2.100.0030.02013.56
5.2.90.0030.01513.56
5.2.80.0070.02513.56
5.2.70.0040.01713.56
5.2.60.0060.01513.56
5.2.50.0020.02013.56
5.2.40.0050.01513.56
5.2.30.0050.01713.56
5.2.20.0020.01813.56
5.2.10.0040.01513.56
5.2.00.0020.01813.56
5.1.60.0050.01213.56
5.1.50.0110.01113.56
5.1.40.0070.01113.56
5.1.30.0040.01413.56
5.1.20.0040.01513.56
5.1.10.0000.01713.56
5.1.00.0020.01713.56
5.0.50.0000.01513.56
5.0.40.0050.01213.56
5.0.30.0050.01613.56
5.0.20.0050.01013.56
5.0.10.0060.01013.56
5.0.00.0030.01613.56
4.4.90.0020.01013.56
4.4.80.0030.00713.56
4.4.70.0000.01113.56
4.4.60.0000.01113.56
4.4.50.0020.01113.56
4.4.40.0030.01113.56
4.4.30.0030.00913.56
4.4.20.0020.01113.56
4.4.10.0040.00913.56
4.4.00.0050.01313.56
4.3.110.0020.01113.56
4.3.100.0040.00813.56
4.3.90.0040.00813.56
4.3.80.0020.01213.56
4.3.70.0030.00813.56
4.3.60.0000.01213.56
4.3.50.0050.00613.56
4.3.40.0000.02013.56
4.3.30.0010.00913.56
4.3.20.0010.01113.56
4.3.10.0000.01213.56
4.3.00.0040.00713.56