3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $output = "Clean :this; [c<op=y of i>nv\al?id@ non AS]CII äóchar^acters."; $output = preg_replace('/[\x00-\x1F]|[\x21-\x2C]|[\x3A-\x40]|[\x5B-\x5E]|[\x7B-\x7D]|[\x80-\xBF]|[\x2B0-\x36F]/','', $output); echo($output);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
Clean this copy of invalid non ASCII ��characters.