3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo $referer = str_replace("\/en\/", "/ru/", "http://fashion/en/items/1") . "<br>"; echo $referer = str_replace("\/ru\/", "\/en\/", "http://fashion/en/items/1");
Output for 4.3.0 - 7.1.0
http://fashion/en/items/1<br>http://fashion/en/items/1