3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string="xxx a. s."; $string = strtr($string, array( "\r" => "\n", "a. s." => "a._s." )); echo $string; echo "\n"; $string = strtr($string, array("a._s." => "a. s.")); echo $string; echo "\n";
based on JPZEV
Output for 4.3.0 - 7.2.0
xxx a._s. xxx a. s.