3v4l.org

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