3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $value = '20_16'; var_dump(implode('_', array_filter($value)));
based on M3Z1g
Output for 5.3.0 - 7.2.0
Warning: array_filter() expects parameter 1 to be array, string given in /in/86b8M on line 3 Warning: implode(): Invalid arguments passed in /in/86b8M on line 3 NULL
Output for 5.2.5 - 5.2.17
Warning: array_filter(): The first argument should be an array in /in/86b8M on line 3 Warning: implode(): Invalid arguments passed in /in/86b8M on line 3 NULL
Output for 4.3.2 - 5.2.4
Warning: array_filter(): The first argument should be an array in /in/86b8M on line 3 Warning: implode(): Bad arguments. in /in/86b8M on line 3 NULL
Output for 4.3.0 - 4.3.1
Warning: array_filter() [http://www.php.net/function.array-filter]: The first argument should be an array in /in/86b8M on line 3 Warning: implode() [http://www.php.net/function.implode]: Bad arguments. in /in/86b8M on line 3 NULL