3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $sentence = "Maria went to London where he met Peter with his family."; echo $clean = substr_replace($sentence, "he", "she", 0, 34);
Output for 5.3.0 - 7.1.0
Warning: substr_replace() expects at most 4 parameters, 5 given in /in/A3ZaQ on line 4
Output for 4.3.0 - 5.2.17
Warning: Wrong parameter count for substr_replace() in /in/A3ZaQ on line 4