3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $list = array( array('hostname' => 'example.org'), array('hostname' => 'www.example.org'), array('hostname' => 'example.example.org'), ); $keys = array_column($list, 'hostname'); var_dump($keys);
Output for 5.5.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(3) { [0]=> string(11) "example.org" [1]=> string(15) "www.example.org" [2]=> string(19) "example.example.org" }
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function array_column() in /in/CMK1O on line 8
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_column() in /in/CMK1O on line 8
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_column() in /in/CMK1O on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_column() in /in/CMK1O on line 8