3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = array( array('a' => 'testA', 'b' => 'testB'), array('a' =>'testC', 'b' => 'testD') ); print_r(array_values($test['a']));
Output for 5.3.0 - 7.1.0
Notice: Undefined index: a in /in/2duWj on line 9 Warning: array_values() expects parameter 1 to be array, null given in /in/2duWj on line 9
Output for 4.3.2 - 5.2.17
Notice: Undefined index: a in /in/2duWj on line 9 Warning: array_values(): The argument should be an array in /in/2duWj on line 9
Output for 4.3.0 - 4.3.1
Notice: Undefined index: a in /in/2duWj on line 9 Warning: array_values() [http://www.php.net/function.array-values]: The argument should be an array in /in/2duWj on line 9