3v4l.org

run code in 200+ php & hhvm versions
<?php $a = [ [ 'foo' => 777.5 ], [ 'foo' => 777 ], [ 'foo' => '777' ], ]; var_dump(array_column($a, 'foo', 'foo'));
based on fbh3n
Output for hhvm-3.18.5 - 3.22.0, 7.1.21 - 7.1.25, 7.2.9 - 7.3.1
array(1) { [777]=> string(3) "777" }
Output for 5.6.30 - 5.6.38, 7.0.30 - 7.1.20, 7.2.0 - 7.2.8
array(2) { [0]=> float(777.5) [777]=> string(3) "777" }