3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = "Hello%s%s"; echo str_replace('%s', '1', $string, 0);
based on fgdoa
Output for 5.0.0 - 5.4.31
Fatal error: Only variables can be passed by reference in /in/391EC 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/391EC on line 3
Output for 4.3.0 - 4.3.1
Hello11