3v4l.org

run code in 300+ PHP versions simultaneously
<?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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.40.0150.00318.71
8.3.30.0100.00319.00
8.3.20.0080.00020.37
8.3.10.0000.00822.09
8.3.00.0070.00022.33
8.2.170.0100.00722.96
8.2.160.0140.00020.77
8.2.150.0140.00424.18
8.2.140.0060.01224.66
8.2.130.0000.00726.16
8.2.120.0080.00019.33
8.2.110.0090.00022.00
8.2.100.0060.00619.63
8.2.90.0050.00319.27
8.2.80.0110.00017.97
8.2.70.0050.00317.75
8.2.60.0050.00217.93
8.2.50.0000.00818.07
8.2.40.0000.00818.22
8.2.30.0040.00417.97
8.2.20.0050.00217.73
8.2.10.0040.00417.73
8.2.00.0000.00717.62
8.1.270.0090.00023.96
8.1.260.0040.00426.35
8.1.250.0100.00328.09
8.1.240.0090.00023.86
8.1.230.0030.00718.97
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.22
8.1.190.0040.00417.28
8.1.180.0000.00818.10
8.1.170.0040.00418.46
8.1.160.0030.00521.95
8.1.150.0050.00518.49
8.1.140.0040.00417.35
8.1.130.0040.00417.42
8.1.120.0050.00317.41
8.1.110.0070.00017.30
8.1.100.0040.00417.43
8.1.90.0000.00717.38
8.1.80.0000.00717.29
8.1.70.0000.00617.29
8.1.60.0000.00817.50
8.1.50.0030.00717.47
8.1.40.0040.00417.49
8.1.30.0030.00517.60
8.1.20.0030.00617.58
8.1.10.0070.00017.60
8.1.00.0000.00817.44
8.0.300.0030.00318.77
8.0.290.0040.00417.05
8.0.280.0040.00418.39
8.0.270.0070.00017.13
8.0.260.0030.00316.82
8.0.250.0000.00716.83
8.0.240.0030.00316.86
8.0.230.0000.00716.91
8.0.220.0000.00716.89
8.0.210.0000.00616.88
8.0.200.0030.00316.94
8.0.190.0000.00716.99
8.0.180.0000.00716.95
8.0.170.0080.00016.92
8.0.160.0040.00416.83
8.0.150.0000.00716.87
8.0.140.0000.00716.74
8.0.130.0030.00313.21
8.0.120.0030.00616.89
8.0.110.0030.00316.83
8.0.100.0000.00716.76
8.0.90.0040.00416.67
8.0.80.0080.01116.83
8.0.70.0070.00016.73
8.0.60.0000.00716.72
8.0.50.0020.00516.98
8.0.30.0090.01017.04
8.0.20.0120.00717.40
8.0.10.0040.00416.93
8.0.00.0150.00716.75
7.4.330.0060.00015.01
7.4.320.0030.00316.43
7.4.300.0030.00316.43
7.4.290.0030.00316.46
7.4.280.0030.00316.45
7.4.270.0050.00316.53
7.4.260.0000.00716.42
7.4.250.0070.00016.41
7.4.240.0020.00616.56
7.4.230.0000.00716.64
7.4.220.0110.00716.55
7.4.210.0070.00716.53
7.4.200.0040.00416.28
7.4.190.0030.00316.48
7.4.160.0090.00616.44
7.4.150.0140.00317.40
7.4.140.0140.00617.86
7.4.130.0080.00816.48
7.4.120.0070.01016.42
7.4.110.0030.01516.37
7.4.100.0040.01416.47
7.4.90.0090.00816.59
7.4.80.0120.00616.54
7.4.70.0080.00816.59
7.4.60.0030.01316.40
7.4.50.0030.00316.08
7.4.40.0000.01522.77
7.4.30.0150.00316.56
7.4.00.0080.00815.08
7.3.330.0030.00313.02
7.3.320.0000.00613.25
7.3.310.0060.00316.25
7.3.300.0000.00716.17
7.3.290.0100.00716.30
7.3.280.0070.01016.28
7.3.270.0060.01017.40
7.3.260.0060.01116.47
7.3.250.0100.00816.22
7.3.240.0130.00516.38
7.3.230.0110.00716.39
7.3.210.0120.00916.23
7.3.200.0160.00719.39
7.3.190.0160.00616.38
7.3.180.0130.00716.18
7.3.170.0130.00316.31
7.3.160.0090.00916.30
7.3.120.0000.01514.99
7.2.330.0150.00316.55
7.2.320.0100.00716.55
7.2.310.0140.01116.26
7.2.300.0030.01916.64
7.2.290.0090.00916.54
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

preferences:
58.58 ms | 400 KiB | 5 Q