3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(str_replace('a', 'b', 'a'));
based on 5EfGW
Output for 5.3.18 - 7.2.0
string(1) "b"