3v4l.org

run code in 200+ 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.0 - 5.6.30, hhvm-3.10.1 - 3.15.4, 7.0.0 - 7.2.0
Warning: array_column() expects parameter 1 to be array, string given in /in/s1i5n on line 5
Output for hhvm-3.17.3
Warning: Invalid operand type was used: expects array(s) or collection(s) 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