3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $count=0; echo(str_replace(' ', '', 'a b c ', $count)); echo(str_replace(' ', '', 'a b c ', $count++)); echo($count);
Output for 5.0.0 - 5.4.17
Fatal error: Only variables can be passed by reference in /in/0RbGS on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: Wrong parameter count for str_replace() in /in/0RbGS on line 3 Warning: Wrong parameter count for str_replace() in /in/0RbGS on line 4 1
Output for 4.3.0 - 4.3.1
abcabc1