3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ [ 'foo' => 1.0 ], [ 'foo' => 2.5 ], [ 'foo' => 3 ], [ 'foo' => '4' ], ]; var_dump(array_column($a, 'foo', 'foo'));

preferences:
62 ms | 409 KiB | 5 Q