3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "Coulthard Sally Coulthard Location: Surrey Expertise Covered: Horse, Dog, Horse and Rider Website: www.veterinaryphysio.co.uk Tel: 07865095005 Email: sally@veterinaryphysio.co.uk Kate Haynes Location: Surrey, Sussex, Kent Expertise Covered: Horse, Performance, Horse and Rider Tel: 07957 344688 Email: katehaynesphysio@yahoo.co.uk"; if (preg_match_all("~^(.+)\RLocation:[\s\S]*?^Email: (\S*)~m", $input, $matches, PREG_SET_ORDER)) { foreach ($matches as $data) { echo "{$data[1]}, {$data[2]}\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 19
Branch analysis from position: 8
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 18
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 18
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
Branch analysis from position: 19
filename:       /in/vCVEn
function name:  (null)
number of ops:  20
compiled vars:  !0 = $input, !1 = $matches, !2 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Coulthard%0ASally+Coulthard%0ALocation%3A+Surrey%0AExpertise+Covered%3A+Horse%2C+Dog%2C+Horse+and+Rider%0AWebsite%3A+www.veterinaryphysio.co.uk%0ATel%3A+07865095005%0AEmail%3A+sally%40veterinaryphysio.co.uk%0A%0AKate+Haynes%0ALocation%3A+Surrey%2C+Sussex%2C+Kent%0AExpertise+Covered%3A+Horse%2C+Performance%2C+Horse+and+Rider%0ATel%3A+07957+344688%0AEmail%3A+katehaynesphysio%40yahoo.co.uk'
   16     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%7E%5E%28.%2B%29%5CRLocation%3A%5B%5Cs%5CS%5D%2A%3F%5EEmail%3A+%28%5CS%2A%29%7Em'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        SEND_VAL                                                 2
          6        DO_ICALL                                         $4      
          7      > JMPZ                                                     $4, ->19
   17     8    > > FE_RESET_R                                       $5      !1, ->18
          9    > > FE_FETCH_R                                               $5, !2, ->18
   18    10    >   FETCH_DIM_R                                      ~6      !2, 1
         11        ROPE_INIT                                     4  ~9      ~6
         12        ROPE_ADD                                      1  ~9      ~9, '%2C+'
         13        FETCH_DIM_R                                      ~7      !2, 2
         14        ROPE_ADD                                      2  ~9      ~9, ~7
         15        ROPE_END                                      3  ~8      ~9, '%0A'
         16        ECHO                                                     ~8
   17    17      > JMP                                                      ->9
         18    >   FE_FREE                                                  $5
   20    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
127.83 ms | 1400 KiB | 15 Q