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(); //foreach ($tags as $tag) { //} print_r(array_column('album_id', $tags));
Output for 5.5.0 - 7.1.0
Warning: array_column() expects parameter 1 to be array, string given in /in/OnYHF on line 17
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function array_column() in /in/OnYHF on line 17
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_column() in /in/OnYHF on line 17
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_column() in /in/OnYHF on line 17
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_column() in /in/OnYHF on line 17