3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = [ 'key1' => ' value1', ]; var_dump(array_filter ($test, 'trim'));
based on eQc3v
Output for 5.5.0 - 7.2.6
array(1) { ["key1"]=> string(9) " value1" }