3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Examples 1 & 2 from http://nl3.php.net/array_column $records = array( 4 => array( 'id' => 2135, 'first_name' => 'John', 'last_name' => 'Doe', ), 8 => array( 'id' => 3245, 'first_name' => 'Sally', 'last_name' => 'Smith', ), 2 => array( 'id' => 5342, 'first_name' => 'Jane', 'last_name' => 'Jones', ), '00013411' => array( 'id' => 5623, 'first_name' => 'Peter', 'last_name' => 'Doe', ) ); // Example 1 print_r(array_column($records, 'first_name')); // Example 2 print_r(array_column($records, 'last_name', 'id'));

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.60.0140.00318.14
8.3.50.0170.00316.13
8.3.40.0070.00718.84
8.3.30.0030.01218.88
8.3.20.0070.00020.20
8.3.10.0040.00422.10
8.3.00.0040.00420.66
8.2.180.0110.01116.50
8.2.170.0110.00322.96
8.2.160.0110.00719.07
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0160.00326.16
8.2.120.0080.00019.66
8.2.110.0060.00322.03
8.2.100.0060.00619.14
8.2.90.0050.00319.23
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0040.00417.92
8.2.50.0040.00418.07
8.2.40.0040.00418.09
8.2.30.0020.00517.98
8.2.20.0040.00417.60
8.2.10.0040.00417.60
8.2.00.0070.00017.68
8.1.270.0100.00018.53
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.79
8.1.230.0030.00919.16
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0040.00417.23
8.1.190.0000.00717.40
8.1.180.0000.00818.62
8.1.170.0040.00418.37
8.1.160.0000.00722.13
8.1.150.0040.00418.63
8.1.140.0030.00617.38
8.1.130.0050.00317.76
8.1.120.0070.00017.43
8.1.110.0050.00317.41
8.1.100.0000.00717.37
8.1.90.0080.00017.43
8.1.80.0000.00717.25
8.1.70.0070.00017.28
8.1.60.0000.01017.55
8.1.50.0030.00617.43
8.1.40.0060.00317.34
8.1.30.0040.00417.51
8.1.20.0000.00817.48
8.1.10.0080.00017.47
8.1.00.0050.00217.39
8.0.300.0000.00718.77
8.0.290.0000.00716.93
8.0.280.0040.00418.36
8.0.270.0030.00317.18
8.0.260.0060.00016.66
8.0.250.0070.00016.89
8.0.240.0050.00316.84
8.0.230.0030.00316.94
8.0.220.0030.00416.74
8.0.210.0000.00716.71
8.0.200.0000.00716.84
8.0.190.0000.00716.80
8.0.180.0030.00316.84
8.0.170.0020.00516.83
8.0.160.0060.00316.72
8.0.150.0000.00716.89
8.0.140.0030.00516.77
8.0.130.0050.00013.30
8.0.120.0050.00316.77
8.0.110.0000.00716.81
8.0.100.0070.00016.64
8.0.90.0070.00016.82
8.0.80.0090.00616.87
8.0.70.0070.00016.80
8.0.60.0000.00716.71
8.0.50.0000.00716.81
8.0.30.0160.00616.95
8.0.20.0100.01017.40
8.0.10.0000.00817.01
8.0.00.0090.00916.58
7.4.330.0000.00515.00
7.4.320.0070.00016.57
7.4.300.0030.00316.41
7.4.290.0050.00316.42
7.4.280.0070.00016.57
7.4.270.0030.00316.52
7.4.260.0030.00316.49
7.4.250.0040.00416.41
7.4.240.0040.00316.49
7.4.230.0070.00016.56
7.4.220.0140.01116.46
7.4.210.0080.00816.49
7.4.200.0000.00716.35
7.4.190.0000.00716.62
7.4.160.0090.00616.25
7.4.150.0100.01017.40
7.4.140.0130.00917.86
7.4.130.0070.01116.31
7.4.120.0090.01216.56
7.4.110.0130.00316.39
7.4.100.0170.00716.50
7.4.90.0070.01016.46
7.4.80.0100.00719.39
7.4.70.0060.01116.50
7.4.60.0100.00716.39
7.4.50.0000.00816.40
7.4.40.0100.00322.77
7.4.30.0060.01116.49
7.4.00.0080.00814.63
7.3.330.0050.00012.94
7.3.320.0030.00312.84
7.3.310.0040.00415.98
7.3.300.0000.00616.16
7.3.290.0090.00816.17
7.3.280.0080.00616.11
7.3.270.0050.01817.40
7.3.260.0130.00716.20
7.3.250.0080.00816.19
7.3.240.0060.00916.38
7.3.230.0170.00016.39
7.3.210.0090.01216.25
7.3.200.0090.01319.39
7.3.190.0100.00716.38
7.3.180.0080.00816.29
7.3.170.0140.00316.27
7.3.160.0050.01116.41
7.3.120.0090.00614.83
7.2.330.0090.01016.42
7.2.320.0120.00916.44
7.2.310.0100.00716.30
7.2.300.0120.00416.64
7.2.290.0160.00316.61
7.2.00.0000.01219.27
7.1.200.0030.00815.56
7.1.70.0070.01316.73
7.1.60.0110.00017.20
7.1.50.0080.01516.66
7.1.00.0030.03322.45
7.0.200.0080.00816.49
7.0.140.0030.07321.95
7.0.70.4800.04020.11
7.0.60.0070.03719.91
7.0.50.0070.03717.86
7.0.40.0070.09020.26
7.0.30.0030.08320.26
7.0.20.0270.05020.12
7.0.10.0330.07020.25
7.0.00.0070.07720.07
5.6.280.0070.06721.15
5.6.210.0000.04320.54
5.6.200.0100.06018.23
5.6.190.0100.07720.67
5.6.180.0230.06320.61
5.6.170.0130.04720.46
5.6.160.0070.08720.48
5.6.150.0070.04318.30
5.6.140.0070.07318.17
5.6.130.0100.07718.14
5.6.120.0170.08020.99
5.6.110.0100.03321.00
5.6.100.0000.07020.97
5.6.90.0030.06321.10
5.6.80.0100.03320.28
5.6.70.0270.06720.39
5.5.350.0070.08720.52
5.5.340.0000.04317.95
5.5.330.0000.09020.13
5.5.320.0000.04320.25
5.5.310.0270.08020.37
5.5.300.0100.06017.98
5.5.290.0030.08017.95
5.5.280.0130.04320.84
5.5.270.0030.04320.64
5.5.260.0070.05320.88
5.5.250.0030.07020.60
5.5.240.0030.04320.36
5.4.450.0600.05319.54
5.4.440.0900.05719.10
5.4.430.0770.04719.09
5.4.420.0170.05019.13
5.4.410.0830.05319.32
5.4.400.0230.05319.11
5.4.390.0300.05718.78
5.4.380.0370.06318.61
5.4.370.0130.06318.71
5.4.360.0070.05318.60
5.4.350.0140.03311.98
5.4.340.0060.04011.97
5.4.320.0060.03512.45
5.4.310.0040.04112.45
5.4.300.0050.04112.46
5.4.290.0060.03912.45
5.4.280.0030.03812.35
5.4.270.0110.03812.35
5.4.260.0080.03612.35
5.4.250.0030.05318.87
5.4.240.0030.06319.02
5.4.230.0070.05319.02
5.4.220.0100.07318.88
5.4.210.0130.04718.72
5.4.200.0230.06018.73
5.4.190.0030.07719.04
5.4.180.0070.05318.82
5.4.170.0070.05018.79
5.4.160.0130.04718.89
5.4.150.0030.07019.02
5.4.140.0200.05716.27
5.4.130.0000.06016.46
5.4.120.0100.06316.51
5.4.110.0130.04716.28
5.4.100.0030.05016.31
5.4.90.0130.04316.44
5.4.80.0070.07016.43
5.4.70.0130.04316.47
5.4.60.0030.05316.49
5.4.50.0100.04316.36
5.4.40.0030.05716.41
5.4.30.0030.05016.22
5.4.20.0130.04316.49
5.4.10.0070.05016.47
5.4.00.0070.04715.80
5.3.290.0040.04112.80
5.3.280.0070.07714.45
5.3.270.0100.05014.61
5.3.260.0100.04714.52
5.3.250.0030.05314.49
5.3.240.0170.04314.52
5.3.230.0070.05014.44
5.3.220.0130.05314.45
5.3.210.0030.05714.66
5.3.200.0130.04714.34
5.3.190.0200.06314.57
5.3.180.0070.06314.54
5.3.170.0100.04714.41
5.3.160.0170.03714.35
5.3.150.0200.06014.56
5.3.140.0130.04314.44
5.3.130.0030.05714.55
5.3.120.0170.04714.70
5.3.110.0130.05014.70
5.3.100.0000.05714.05
5.3.90.0070.05014.11
5.3.80.0070.05014.03
5.3.70.0030.05313.93
5.3.60.0170.04013.84
5.3.50.0000.05713.85
5.3.40.0030.05314.04
5.3.30.0070.04713.95
5.3.20.0070.05013.72
5.3.10.0070.04713.66
5.3.00.0130.04313.63
5.2.170.0070.04011.06
5.2.160.0170.04711.14
5.2.150.0030.06311.14
5.2.140.0130.03311.14
5.2.130.0030.04311.25
5.2.120.0070.04011.12
5.2.110.0030.04011.09
5.2.100.0070.03711.10
5.2.90.0100.03710.93
5.2.80.0070.04010.85
5.2.70.0070.04711.09
5.2.60.0070.05011.05
5.2.50.0070.05311.17
5.2.40.0030.05011.00
5.2.30.0000.05010.98
5.2.20.0130.04710.97
5.2.10.0000.05010.93
5.2.00.0170.05310.93
5.1.60.0030.0379.90
5.1.50.0100.0309.95
5.1.40.0030.04710.04
5.1.30.0030.04710.23
5.1.20.0030.04010.43
5.1.10.0000.03710.02
5.1.00.0100.0409.83
5.0.50.0070.0238.73
5.0.40.0070.0238.43
5.0.30.0030.0438.26
5.0.20.0030.0278.42
5.0.10.0000.0338.12
5.0.00.0070.0408.07
4.4.90.0030.0207.32
4.4.80.0070.0237.32
4.4.70.0030.0307.32
4.4.60.0070.0277.32
4.4.50.0130.0207.32
4.4.40.0030.0337.32
4.4.30.0070.0277.32
4.4.20.0030.0237.32
4.4.10.0000.0237.32
4.4.00.0030.0337.32
4.3.110.0000.0237.32
4.3.100.0000.0237.32
4.3.90.0000.0277.32
4.3.80.0000.0377.32
4.3.70.0100.0137.32
4.3.60.0000.0237.32
4.3.50.0100.0137.32
4.3.40.0000.0337.32
4.3.30.0000.0237.32
4.3.20.0030.0207.32
4.3.10.0000.0237.32
4.3.00.0200.0307.54

preferences:
62.72 ms | 400 KiB | 5 Q