3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = [ 'red' => ['nice' => true, 'hot' => true], 'green' => ['nice' => true, 'hot' => false ] ]; var_dump(array_column($array, 'hot', NULL));
based on CdcZ1
Output for 5.5.24 - 7.2.0
array(2) { [0]=> bool(true) [1]=> bool(false) }
Output for 5.4.10 - 5.4.45
Fatal error: Call to undefined function array_column() in /in/98ogB on line 9
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/98ogB on line 3
Process exited with code 255.