3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrays = array ( 0 => array( "location" => "Breakwater", "bsid" => "105c" ), 1 => array( "location" => "Breakwater", "bsid" => "105c" ), 2 => array( "location" => "Breakwater", "bsid" => "105c" ), 3 => array( "location" => "Whateverelse", "bsid" => "105c" ) ); function array_column($arrays, $key) { $column = array(); foreach($array as $origKey => $value) { if (isset($value[$key])) { $column[$origKey] = $value[$key]; } } return $column; } var_dump($column);

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)
5.4.450.0620.06019.43
5.4.440.0600.06319.50
5.4.430.0630.06219.32
5.4.420.0730.06719.23
5.4.410.0620.04819.20
5.4.400.0420.05719.04
5.4.390.0470.06818.89
5.4.380.0280.06518.96
5.4.370.0250.05818.80
5.4.360.0280.04218.92
5.4.350.0220.04615.50
5.4.340.0210.03915.60
5.4.320.0160.04515.85
5.4.310.0190.04115.74
5.4.300.0230.04315.87
5.4.290.0250.04515.78
5.4.280.0170.05815.70
5.4.270.0230.05215.62
5.4.260.0170.04015.82
5.4.250.0200.04315.81
5.4.240.0110.04415.74
5.4.230.0020.05315.60
5.4.220.0090.04315.70
5.4.210.0080.04915.67
5.4.200.0080.05215.67
5.4.190.0100.05215.69
5.4.180.0070.06215.74
5.4.170.0070.05515.59
5.4.160.0060.04415.69
5.4.150.0110.04815.64
5.4.140.0100.04814.23
5.4.130.0070.04314.22
5.4.120.0030.05314.35
5.4.110.0050.05414.25
5.4.100.0040.05114.25
5.4.90.0120.05714.19
5.4.80.0090.04714.31
5.4.70.0060.04714.20
5.4.60.0080.04614.18
5.4.50.0100.05714.20
5.4.40.0050.04514.32
5.4.30.0060.04814.22
5.4.20.0020.04814.23
5.4.10.0120.04614.26
5.4.00.0070.04213.67
5.3.290.0200.05513.81
5.3.280.0060.04613.73
5.3.270.0080.04313.77
5.3.260.0050.04613.62
5.3.250.0070.04413.61
5.3.240.0080.04213.66
5.3.230.0130.04013.69
5.3.220.0090.04113.63
5.3.210.0070.04713.63
5.3.200.0130.04813.67
5.3.190.0040.05113.66
5.3.180.0040.05013.66
5.3.170.0050.04513.70
5.3.160.0060.05513.69
5.3.150.0150.04713.60
5.3.140.0160.05613.52
5.3.130.0150.06013.64
5.3.120.0100.06613.68
5.3.110.0170.06113.52
5.3.100.0060.05413.07
5.3.90.0170.08513.14
5.3.80.0130.06713.14
5.3.70.0050.05313.05
5.3.60.0100.04313.04
5.3.50.0060.04612.91
5.3.40.0070.05113.03
5.3.30.0090.04912.95
5.3.20.0080.05212.78
5.3.10.0070.05212.72
5.3.00.0090.06112.72
5.2.170.0110.03710.18
5.2.160.0030.03810.17
5.2.150.0080.03810.22
5.2.140.0090.05810.09
5.2.130.0100.03610.18
5.2.120.0120.03310.23
5.2.110.0050.04110.18
5.2.100.0100.03010.18
5.2.90.0020.03710.18
5.2.80.0030.03610.15
5.2.70.0070.03610.22
5.2.60.0060.03510.13
5.2.50.0040.03610.11
5.2.40.0060.0439.99
5.2.30.0070.03510.05
5.2.20.0030.03810.04
5.2.10.0040.03510.01
5.2.00.0100.0339.75
5.1.60.0040.0289.00
5.1.50.0070.0339.07
5.1.40.0040.0339.03
5.1.30.0090.0309.41
5.1.20.0100.0329.43
5.1.10.0050.0409.23
5.1.00.0070.0319.14
5.0.50.0030.0317.51
5.0.40.0030.0287.42
5.0.30.0070.0347.33
5.0.20.0060.0227.31
5.0.10.0060.0297.30
5.0.00.0060.0477.29
4.4.90.0020.0216.56
4.4.80.0020.0236.55
4.4.70.0050.0176.55
4.4.60.0040.0196.55
4.4.50.0020.0206.55
4.4.40.0020.0316.52
4.4.30.0030.0186.55
4.4.20.0000.0226.59
4.4.10.0070.0176.59
4.4.00.0030.0336.55
4.3.110.0020.0226.50
4.3.100.0040.0176.50
4.3.90.0020.0216.48
4.3.80.0030.0326.46
4.3.70.0040.0226.48
4.3.60.0050.0176.48
4.3.50.0040.0236.48
4.3.40.0040.0296.44
4.3.30.0040.0235.82
4.3.20.0020.0215.81
4.3.10.0010.0225.79
4.3.00.0050.0179.40

preferences:
166.5 ms | 1394 KiB | 7 Q