3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/(EC)\w{2}|(CC)\w{2}|\w(F)\w{2}|(LT)\w{2}|\w(T)\w{2}/'; $str = 'STAR'; preg_match($re, $str, $matches); // Print the entire match result var_dump($matches);

preferences:
61.38 ms | 405 KiB | 5 Q