3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function trimo( string $string, string $additionalTrimChars = '' ): string { return trim(trim($string), $additionalTrimChars); } var_dump(trimo(' = hasen', '='));
Output for 7.1.7
string(6) " hasen"