3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = html_entity_decode('&auml;&uuml;uu', ENT_COMPAT, 'ISO-8859-1'); echo preg_replace('#(&\#*\w+)[\x00-\x20]+;#u',"$1;",$string); echo "\n"; $string = 'ss'; echo preg_replace('#(&\#*\w+)[\x00-\x20]+;#u',"$1;",$string);

preferences:
35.01 ms | 402 KiB | 5 Q