3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $sValue = '50'; echo trim($sValue, ' \t\n\r\x0B')."\n"; $sValue = 50; echo trim($sValue, ' \t\n\r\x0B')."\n"; $sValue = 50.0; echo trim($sValue, ' \t\n\r\x0B')."\n"; echo '&&&&&&&&&&&&&'; $sValue = '50'; echo trim($sValue, ' \t\n\r')."\n"; $sValue = 50; echo trim($sValue, ' \t\n\r')."\n"; $sValue = 50.0; echo trim($sValue, ' \t\n\r')."\n";
based on SWYCZ
Output for 4.3.0 - 7.1.0
5 5 5 &&&&&&&&&&&&&50 50 50