3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match('/.+\s\(ID:?(.*)\)$/', 'abc (xyz) (ID:http://ex () ample.com)', $match); print_r($match); preg_match('/.+\s\(ID:(.*)\)$/', 'abc (xyz) (ID:123456)', $match); print_r($match);

preferences:
60.65 ms | 402 KiB | 5 Q