3v4l.org

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