3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $sentence = "Maria went to London where he met Peter with his family."; $clean = str_replace(' he ', ' she ', substr($sentence, 0, 34)); $clean .= substr($sentence, 34); echo $clean;
Output for 4.3.0 - 7.3.0rc4
Maria went to London where she met Peter with his family.