3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var = 2; $str = "aaaaabbbbbcccdddd"; echo str_replace('a', 'z', $str, $var); echo $var;
Output for 5.0.0 - 7.1.0
zzzzzbbbbbcccdddd5
Output for 4.3.2 - 4.4.9
Warning: Wrong parameter count for str_replace() in /in/SEkoX on line 4 2
Output for 4.3.0 - 4.3.1
zzzzzbbbbbcccdddd2