3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(preg_replace('/(\s)\s+/u', '$1', html_entity_decode(' &nbsp; ', ENT_QUOTES, 'utf-8')));
based on jiP9W