3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "bonjour Madame, \r\ntest\nalsdblas\rsdasd"; var_dump( str_replace("\r|\n", "<br>", $string));
Output for 4.3.0 - 7.1.0
string(37) "bonjour Madame, test alsdblas sdasd"