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:
101.37 ms | 1994 KiB | 6 Q