3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "null}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class='listenueberschrift' style='background-color:#FFFFFF'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div style='background-color:#FFFFFF;margin-top:10px;margin-left:10px;margin-right:10px;ma"; echo $string; echo preg_replace("@(\t)+|(\n)+@", '', $string); ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
null} <br> <div class='listenueberschrift' style='background-color:#FFFFFF'> <br> <div style='background-color:#FFFFFF;margin-top:10px;margin-left:10px;margin-right:10px;manull}<br><div class='listenueberschrift' style='background-color:#FFFFFF'><br><div style='background-color:#FFFFFF;margin-top:10px;margin-left:10px;margin-right:10px;ma