3v4l.org

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

preferences:
178.24 ms | 404 KiB | 5 Q