3v4l.org

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

preferences:
51.29 ms | 402 KiB | 5 Q