3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $body = [ 'key2' => ' abc ', 'key3' => false, 'key4' => true, 'key5' => null, ]; $body = filter_var($body, FILTER_CALLBACK, ['options' => 'trim']); var_export($body);
Output for 7.1.25 - 7.3.4
array ( 'key2' => 'abc', 'key3' => '', 'key4' => '1', 'key5' => '', )