3v4l.org

run code in 500+ PHP versions simultaneously
<?php $subject = "New tour subscription [ALKJ-102] [ID:12345]"; preg_match("/(?<=\[ID:)\d+/", $subject, $mat); echo $mat[0];

preferences:
42.38 ms | 1444 KiB | 5 Q