3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = [ ['id' => 10, 'value' => 100, 'name' => 'hoge'], ['id' => 20, 'value' => 200, 'name' => 'fuga'], ['id' => 30, 'value' => 300, 'name' => 'fizz'], ]; var_dump(array_column($array, 'value', 'id'));
based on CfOHs
Output for 5.6.0 - 5.6.38, hhvm-3.15.4 - 3.22.0, 7.0.0 - 7.2.12
array(3) { [10]=> int(100) [20]=> int(200) [30]=> int(300) }