3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // your code goes here $test = "moindre probleme"; var_dump(preg_match("/^[a-zA-Z\x{00C0}-\x{017F}]/u", $test)); //var_dump (filter_var($test, FILTER_SANITIZE_SPECIAL_CHARS, FILTER_FLAG_STRIP_LOW));
based on JWvEC
Output for 4.3.3 - 5.0.5, 5.1.1 - 7.1.0
int(1)
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/E5e3e on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.2
Warning: Compilation failed: characters with values > 255 are not yet supported in classes at offset 24 in /in/E5e3e on line 6 bool(false)