3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(array_filter(array(null, false, '', 0, 0.0, '0', array(), array('a')), 'strlen'));
Output for 5.3.0 - 7.2.0
Warning: strlen() expects parameter 1 to be string, array given in /in/D5PQJ on line 3 Warning: strlen() expects parameter 1 to be string, array given in /in/D5PQJ on line 3 array(3) { [3]=> int(0) [4]=> float(0) [5]=> string(1) "0" }
Output for 4.3.0 - 5.2.17
Notice: Array to string conversion in /in/D5PQJ on line 3 Notice: Array to string conversion in /in/D5PQJ on line 3 array(5) { [3]=> int(0) [4]=> float(0) [5]=> string(1) "0" [6]=> array(0) { } [7]=> array(1) { [0]=> string(1) "a" } }