3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $output = '<h1>title</h1> <ul> <li>first</li> <li>second</li> </ul>'; $output = str_replace(array("\r\n", "\r", "\n"), "", $output); var_dump($output);die;
based on XlDag
Output for 5.5.0 - 7.2.8
string(52) "<h1>title</h1><ul><li>first</li><li>second</li></ul>"