3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $tags = array( array('tag_id' => 1, 'tag_name' => 'Hello', 'album_id' => 1), array('tag_id' => 1, 'tag_name' => 'Hello', 'album_id' => 2), array('tag_id' => 2, 'tag_name' => 'World', 'album_id' => 1), array('tag_id' => 2, 'tag_name' => 'World', 'album_id' => 2), array('tag_id' => 3, 'tag_name' => 'Again', 'album_id' => 3) ); $org_tags = array(); print_r(array_column($tags, 'album_id', 'tag_id'));
Output for 5.5.24 - 7.1.0
Array ( [1] => 2 [2] => 2 [3] => 3 )
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function array_column() in /in/GOvEj on line 14
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_column() in /in/GOvEj on line 14
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_column() in /in/GOvEj on line 14
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_column() in /in/GOvEj on line 14