3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "Hello%s%s"; echo str_replace('%s', '1', $string, 1);
based on MddsX
Output for 5.0.0 - 5.4.31
Fatal error: Only variables can be passed by reference in /in/fgdoa on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: Wrong parameter count for str_replace() in /in/fgdoa on line 3
Output for 4.3.0 - 4.3.1
Hello11