3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $content_no_tags = "This is my content right here!&nbsp;This is my content right here!&nbsp;"; var_dump(preg_replace( '/(\s)+/S',' ', $content_no_tags ));
Output for 4.3.0 - 7.1.0
string(72) "This is my content right here!&nbsp;This is my content right here!&nbsp;"