3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array( array( 'a', 'b', 1 ,2 , 5 ), array( 'a', 'b', 1 ,2 , 5 ) ); $x = array_map( 'array_filter' , $a , array( 'is_int' , 'is_string' ) ); var_dump($x);
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
array(2) { [0]=> array(3) { [2]=> int(1) [3]=> int(2) [4]=> int(5) } [1]=> array(2) { [0]=> string(1) "a" [1]=> string(1) "b" } }