3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr1 = range(0,10); $arr2 = array('key1'=>'value1','key2'=>'value2','key3'=>'value3'); $test1 = array_filter($arr1,'odd'); echo implode('',$arr1)."\t"; echo implode('',$arr2)."\t"; echo $test1."\t";
Output for 5.3.0 - 7.1.0
Warning: array_filter() expects parameter 2 to be a valid callback, function 'odd' not found or invalid function name in /in/sJPbX on line 6 012345678910 value1value2value3
Output for 4.3.2 - 5.2.17
Warning: array_filter(): The second argument, 'odd', should be a valid callback in /in/sJPbX on line 6 012345678910 value1value2value3
Output for 4.3.0 - 4.3.1
Warning: array_filter() [http://www.php.net/function.array-filter]: The second argument, 'odd', should be a valid callback in /in/sJPbX on line 6 012345678910 value1value2value3