3v4l.org

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

preferences:
46.68 ms | 2716 KiB | 5 Q