3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = " five"; $str2 = " five"; $wspace = trim($str); $wspace2=trim($str2); var_dump($str == $str2); // true var_dump($c1 = count($wspace),$c2 = count($wspace2),$c1 == $c2);
Output for 4.3.0 - 7.1.0
bool(false) int(1) int(1) bool(true)