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]|[\x2000-\x2BFF]/','', $output); echo($output);
Output for 4.3.11 - 5.6.28, 7.0.0 - 7.1.0
Warning: preg_replace(): Compilation failed: range out of order in character class at offset 97 in /in/ENuJR on line 3
Output for 4.3.0 - 4.3.10, hhvm-3.10.0 - 3.12.0
Warning: Compilation failed: range out of order in character class at offset 97 in /in/ENuJR on line 3