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); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MEhn3
function name:  (null)
number of ops:  10
compiled vars:  !0 = $text, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'PRD+Hervey+Bay+07+2525+1919%0ARG+Sprake+%26amp%3B+Co+Maryborough+4141+2424%0AOwner+Robert+-+0429+966+391%0AOwner+Maureen+-+07+8888+4444+-+0422000+111%0AOwner+Wayne+-+0430+555+666%0ABuilder+Scott+-+0444+555+777'
   10     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%5E%28Owner+%7CBuilder+%29%3F%28.%2A%3F%29%28%3F%3D-%7C+%5Cd%29%5B-+%5D%2B%28.%2A%29%24%2Fm'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
   11     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
129.71 ms | 1398 KiB | 17 Q