3v4l.org

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

preferences:
40.89 ms | 402 KiB | 5 Q