3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['attribute' => 'gender', 'value' => 'male'], ['attribute' => 'first_name', 'value' => 'test'], ]; var_export( array_column($array, 'value', 'attribute') );

preferences:
26.33 ms | 405 KiB | 5 Q