3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $subject = "l1\r\tl2\nl3\r\nl4"; var_dump($subject, str_replace(array("\r", "\n"), '', $subject));
Output for 4.3.0 - 7.1.0
string(13) "l1 l2 l3 l4" string(9) "l1 l2l3l4"