3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // your code goes here //$test = "최상의 선택 & 합리적인 가격"; $test = "test"; 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 oWkvO
Output for 4.3.3 - 5.0.5, 5.1.1 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
int(1)
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/jkhIh on line 8
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/jkhIh on line 7 bool(false)