3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['attribute' => 1.5, 'value' => 'one & a half'], ['attribute' => 2, 'value' => 'two'], ['attribute' => 1, 'value' => 'one'], ]; var_export( array_column($array, 'value', 'attribute') );

preferences:
24.83 ms | 405 KiB | 5 Q