3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['id' => 7, 'name' => 'foo'], ['id' => 10, 'name' => 'bar'], ['id' => 15, 'name' => 'baz'], ]; var_export( array_column($array, null, 'id') );

preferences:
31.57 ms | 405 KiB | 5 Q