3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "test sample test: 2015. ŽYDRŪNAS PAVARDENIS"; preg_match_all("/[[:upper:]]+/u", $string, $matches); var_dump($matches);

preferences:
20.21 ms | 402 KiB | 5 Q