3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = " \0 hallo \0 "; var_dump(trim($str));
based on LognF
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
string(5) "hallo"