3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $base="www.youtube.com"; $mydomain="www.pippobruco.it"; $stringa="wwww.youtube.com/watch"; echo str_replace($base,$domain.$base,$stringa);
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: domain in /in/K0H1E on line 5 wwww.youtube.com/watch
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: domain in /in/K0H1E on line 5 wwww.youtube.com/watch