3v4l.org

run code in 300+ PHP versions simultaneously
<?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 5.4.0 - 5.4.25
Parse error: syntax error, unexpected '$str' (T_VARIABLE) in /in/U041a on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/U041a on line 5
Process exited with code 255.

preferences:
195.84 ms | 1395 KiB | 62 Q