3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = " 5"; $str2 = " 5"; $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 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
bool(true) int(1) int(1) bool(true)
Output for hhvm-3.10.0

Process exited with code 153.