3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = range(0,10); $arr2 = array('key1'=>'value1','key2'=>'value2','key3'=>'value3'); $test1 = array_filter($arr1,'odd'); echo implode('',$arr)."\t"; echo implode('',$arr2)."\t"; echo $test1."\t";
Output for 5.3.0 - 7.1.0
Notice: Undefined variable: arr1 in /in/jk0mN on line 6 Warning: array_filter() expects parameter 1 to be array, null given in /in/jk0mN on line 6 012345678910 value1value2value3
Output for 5.0.4 - 5.2.17
Notice: Undefined variable: arr1 in /in/jk0mN on line 6 Warning: array_filter(): The first argument should be an array in /in/jk0mN on line 6 012345678910 value1value2value3
Output for 4.3.2 - 5.0.3
Notice: Undefined variable: arr1 in /in/jk0mN on line 6 Warning: array_filter(): The first argument should be an array in /in/jk0mN on line 6 012345678910 value1value2value3
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: arr1 in /in/jk0mN on line 6 Warning: array_filter() [http://www.php.net/function.array-filter]: The first argument should be an array in /in/jk0mN on line 6 012345678910 value1value2value3