3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = 'Re: Response to your ticket [TicketID:159]'; $matches = []; preg_match('.*\[TicketID:(\d)+\]', $matches); var_dump($matches);

preferences:
31.83 ms | 402 KiB | 5 Q