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);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
151.59 ms | 2601 KiB | 12 Q