3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<EOD PRD Hervey Bay 07 2525 1919 RG Sprake &amp; Co Maryborough 4141 2424 Owner Robert - 0429 966 391 Owner Maureen - 07 8888 4444 - 0422000 111 Owner Wayne - 0430 555 666 Builder Scott - 0444 555 777 EOD; preg_match_all('/^(Owner |Builder )?(.*?)(?=-| \d)[- ]+(.*)$/m', $text, $matches); array_walk($matches[3], function (&$v) { $v = preg_replace('/[^\d]/', '', $v); }); print_r($matches);

preferences:
23.76 ms | 402 KiB | 5 Q