3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = "Ahoj a. s."; $string = strtr($string, array( "\r" => "\n", "a. s." => "a.\xa0s." )); var_dump($string); $string = strtr($string, array("a.\xa0s." => "a. s.")); var_dump($string);
Output for 4.3.0 - 7.2.0
string(10) "Ahoj a.�s." string(10) "Ahoj a. s."