3v4l.org

run code in 300+ PHP versions simultaneously
<?php function check($value) { return (bool)preg_match('/^\p{Cyrillic}{1}$/', $value); }; $test = 'ะค'; var_dump(check($test));

preferences:
35.6 ms | 402 KiB | 5 Q