3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = array( 'naam' => '0', 'anaam' => 0, 'vnaam' => 'hellow' ); function is_zero($var) { echo ' executeing --_'; return (($var != '0')); } print_r(array_filter($data, 'is_zero'));
Output for 4.3.0 - 7.1.0
executeing --_ executeing --_ executeing --_Array ( [vnaam] => hellow )