3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = array( array('a' => 'testA', 'b' => 'testB'), array('a' =>'testC', 'b' => 'testD') ); print_r(array_values($test)['a']);

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.0170.00798.97
7.3.0rc30.0060.00316.05
7.3.0beta10.0000.00512.41
7.3.0alpha10.0030.00612.64
7.2.60.0030.00716.64
7.2.00.0000.00919.26
7.1.200.0040.01115.75
7.1.100.0030.00918.15
7.1.70.0030.01017.16
7.1.60.0070.01319.82
7.1.50.0090.01216.91
7.1.00.0030.07722.31
7.0.200.0030.00616.65
7.0.140.0100.06722.12
7.0.100.0100.05019.96
7.0.90.0030.03719.88
7.0.80.0070.04019.94
7.0.70.0000.04319.96
7.0.60.0170.05319.89
7.0.50.0200.03320.39
7.0.40.0130.03320.05
7.0.30.0130.03320.20
7.0.20.0070.03020.01
7.0.10.0030.03720.10
7.0.00.0100.03020.16
5.6.280.0030.07320.81
5.6.250.0030.04720.63
5.6.240.0070.04020.75
5.6.230.0030.04720.75
5.6.220.0100.03720.67
5.6.210.0130.02320.46
5.6.200.0070.03721.04
5.6.190.0030.04321.11
5.6.180.0100.03720.95
5.6.170.0030.04021.07
5.6.160.0100.02721.16
5.6.150.0030.03721.13
5.6.140.0030.03720.93
5.6.130.0000.04721.06
5.6.120.0070.03320.92
5.6.110.0170.03721.05
5.6.100.0000.04320.91
5.6.90.0030.03720.98
5.6.80.0000.03720.39
5.6.70.0000.04020.40
5.6.60.0070.04720.44
5.6.50.0170.06020.48
5.6.40.0030.04720.35
5.6.30.0030.04320.52
5.6.20.0000.04020.29
5.6.10.0030.04320.36
5.6.00.0130.05020.31
5.5.380.0070.03020.39
5.5.370.0030.03720.48
5.5.360.0030.03720.43
5.5.350.0030.03720.45
5.5.340.0000.04020.87
5.5.330.0030.03320.77
5.5.320.0000.03720.88
5.5.310.0130.03320.89
5.5.300.0000.04020.91
5.5.290.0000.04020.78
5.5.280.0030.03720.88
5.5.270.0030.03720.81
5.5.260.0070.03320.74
5.5.250.0030.03720.61
5.5.240.0100.02720.27
5.5.230.0070.05720.17
5.5.220.0070.04020.28
5.5.210.0000.04720.12
5.5.200.0000.07320.11
5.5.190.0030.07720.25
5.5.180.0070.04320.23
5.5.160.0070.04019.98
5.5.150.0030.04320.07
5.5.140.0030.03720.07
5.5.130.0070.03720.13
5.5.120.0070.06720.16
5.5.110.0030.06320.11
5.5.100.0130.03320.04
5.5.90.0000.07320.16
5.5.80.0070.03719.96
5.5.70.0070.04020.14
5.5.60.0000.04320.09
5.5.50.0030.03720.14
5.5.40.0130.05720.04
5.5.30.0030.08020.13
5.5.20.0130.05720.10
5.5.10.0070.07320.04
5.5.00.0000.04020.00
5.4.450.0100.02719.37
5.4.440.0000.03719.46
5.4.430.0000.03719.34
5.4.420.0000.04719.39
5.4.410.0070.03019.21
5.4.400.0000.05719.13
5.4.390.0000.06318.96
5.4.380.0030.03318.98
5.4.370.0070.04319.10
5.4.360.0030.04019.23
5.4.350.0070.05319.06
5.4.340.0130.07718.98
5.4.320.0030.04019.24
5.4.310.0030.07018.90
5.4.300.0070.03019.03
5.4.290.0100.06018.99
5.4.280.0070.06018.89
5.4.270.0030.05319.02
5.4.260.0070.04319.07
5.4.250.0030.08019.05
5.4.240.0030.04019.02
5.4.230.0200.02718.94
5.4.220.0070.03718.78
5.4.210.0070.03318.78
5.4.200.0130.07018.94
5.4.190.0170.06319.02
5.4.180.0030.08019.10
5.4.170.0070.03718.79
5.4.160.0100.06719.03
5.4.150.0030.04019.07
5.4.140.0030.04016.12
5.4.130.0070.03316.27
5.4.120.0070.04016.06
5.4.110.0030.04016.24
5.4.100.0030.03716.30
5.4.90.0000.04016.26
5.4.80.0070.03716.44
5.4.70.0000.08016.24
5.4.60.0000.08016.18
5.4.50.0000.05316.24
5.4.40.0000.04716.36
5.4.30.0100.06316.30
5.4.20.0000.04316.38
5.4.10.0000.04016.40
5.4.00.0000.04315.80
5.3.290.0000.03714.63
5.3.280.0030.07714.58
5.3.270.0030.04014.46
5.3.260.0070.04314.59
5.3.250.0070.03014.61
5.3.240.0100.07014.44
5.3.230.0000.06314.43
5.3.220.0130.06714.55
5.3.210.0130.04014.43
5.3.200.0030.04014.58
5.3.190.0030.03714.39
5.3.180.0030.03714.56
5.3.170.0000.04014.42
5.3.160.0000.04314.47
5.3.150.0030.04314.39
5.3.140.0100.02714.56
5.3.130.0030.03714.42
5.3.120.0030.07314.51
5.3.110.0030.05714.41
5.3.100.0000.04014.04
5.3.90.0170.03714.01
5.3.80.0070.06713.98
5.3.70.0170.05313.98
5.3.60.0030.04313.96
5.3.50.0030.03713.80
5.3.40.0070.07713.85
5.3.30.0070.07713.85
5.3.20.0130.05713.60
5.3.10.0070.07013.66
5.3.00.0000.04013.63
5.2.170.0000.03310.98
5.2.160.0070.05711.21
5.2.150.0030.03711.18
5.2.140.0030.03311.17
5.2.130.0100.02710.96
5.2.120.0070.05011.13
5.2.110.0070.02310.94
5.2.100.0000.03311.02
5.2.90.0030.03010.95
5.2.80.0070.06010.95
5.2.70.0070.05711.07
5.2.60.0030.03310.91
5.2.50.0000.05311.02
5.2.40.0030.02310.84
5.2.30.0030.02711.02
5.2.20.0100.04710.79
5.2.10.0030.02310.92
5.2.00.0100.04710.74
5.1.60.0070.04710.37
5.1.50.0030.05310.37
5.1.40.0070.03010.37
5.1.30.0030.03310.37
5.1.20.0030.05710.37
5.1.10.0070.02310.37
5.1.00.0000.04310.37
5.0.50.0030.02710.37
5.0.40.0000.03710.37
5.0.30.0070.02310.37
5.0.20.0030.01710.37
5.0.10.0100.04010.37
5.0.00.0000.03010.37
4.4.90.0070.03310.37
4.4.80.0030.02710.37
4.4.70.0030.01310.37
4.4.60.0000.02010.37
4.4.50.0000.03310.37
4.4.40.0000.03710.37
4.4.30.0030.03310.37
4.4.20.0070.01710.37
4.4.10.0030.03310.37
4.4.00.0000.05310.37
4.3.110.0000.02710.37
4.3.100.0000.01710.37
4.3.90.0000.03710.37
4.3.80.0030.02010.37
4.3.70.0000.01310.37
4.3.60.0000.01310.37
4.3.50.0030.02010.37
4.3.40.0000.03710.37
4.3.30.0000.02710.37
4.3.20.0000.03710.37
4.3.10.0030.03010.37
4.3.00.0030.02310.37