3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [['key'=>'val1'],['key'=>'val2']]; print_r($a); print_r(array_column($a, 'key'));

preferences:
39.2 ms | 402 KiB | 5 Q