3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '<pre>'; print_r(array_column( [ ['id' => 'turkey', 'iddddd' => 'nevermore'], ['id' => 'turkey2', 'iddddd' => 'nev2ermore'], ['id' => 'turkey3', 'iddddd' => 'neverm3ore'], ] ), 'id'); echo '</pre>';
Output for 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
<pre> Fatal error: Uncaught ArgumentCountError: array_column() expects at least 2 arguments, 1 given in /in/hotTj:4 Stack trace: #0 /in/hotTj(4): array_column(Array) #1 {main} thrown in /in/hotTj on line 4
Process exited with code 255.
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28
<pre> Fatal error: Uncaught ArgumentCountError: array_column() expects at least 2 arguments, 1 given in /in/hotTj:6 Stack trace: #0 /in/hotTj(6): array_column(Array) #1 {main} thrown in /in/hotTj on line 6
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
<pre> Warning: array_column() expects at least 2 parameters, 1 given in /in/hotTj on line 6 </pre>

preferences:
196.26 ms | 403 KiB | 189 Q