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:
12.52 ms | 483 KiB | 6 Q