3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = ['','',5,0,'hey']; print_r( array_filter($a), function($i) { return $i != ''; } );
based on vmPpa
Output for 7.3.0alpha1 - 7.3.0beta1
Warning: print_r() expects parameter 2 to be bool, object given in /in/LSVVO on line 5
Output for 5.6.30, hhvm-3.18.5 - 3.21.3, 7.0.30 - 7.2.7
Warning: print_r() expects parameter 2 to be boolean, object given in /in/LSVVO on line 5
Output for hhvm-3.22.0
Warning: print_r() expects parameter 2 to be boolean, object given in /in/LSVVO on line -1