3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $testArray = array('test' => array('a' => array('percy', 'a' => 'mitch'), 'b', 'c')); $res = array_column('a', $testArray); print_r($res);
Output for 5.5.24 - 7.1.0
Warning: array_column() expects parameter 1 to be array, string given in /in/s1i5n on line 5
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function array_column() in /in/s1i5n on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_column() in /in/s1i5n on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_column() in /in/s1i5n on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_column() in /in/s1i5n on line 5