3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'username1234_-'; preg_match('/[\w\d_-]{,14}+/', $string, $match); var_dump($match);

preferences:
43.04 ms | 402 KiB | 5 Q