3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/\"(.*?)\",\"(.*?)\"/s'; $str = '"Name","Address" "John Doe","5111 Fury Rd Santa Cruz" "Jane Doe","321 Tess St Texas" "Josh Doe","653 1st St Orlando Florida United States"'; preg_match_all($re, $str, $matches); // Print the entire match result foreach($matches[2] as &$value){ $value = str_replace(PHP_EOL, " ", $value); } var_dump($matches);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
2 jumps found. (Code = 126) Position 1 = 10, Position 2 = 17
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/7kRDt
function name:  (null)
number of ops:  22
compiled vars:  !0 = $re, !1 = $str, !2 = $matches, !3 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%5C%22%28.%2A%3F%29%5C%22%2C%5C%22%28.%2A%3F%29%5C%22%2Fs'
    4     1        ASSIGN                                                   !1, '%22Name%22%2C%22Address%22%0A%22John+Doe%22%2C%225111+Fury+Rd%0ASanta+Cruz%22%0A%22Jane+Doe%22%2C%22321+Tess+St+Texas%22%0A%22Josh+Doe%22%2C%22653+1st+St%0AOrlando+Florida%0AUnited+States%22'
   12     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
   15     7        FETCH_DIM_W                                      $7      !2, 2
          8      > FE_RESET_RW                                      $8      $7, ->17
          9    > > FE_FETCH_RW                                              $8, !3, ->17
   16    10    >   INIT_FCALL                                               'str_replace'
         11        SEND_VAL                                                 '%0A'
         12        SEND_VAL                                                 '+'
         13        SEND_VAR                                                 !3
         14        DO_ICALL                                         $9      
         15        ASSIGN                                                   !3, $9
   15    16      > JMP                                                      ->9
         17    >   FE_FREE                                                  $8
   18    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.34 ms | 1400 KiB | 19 Q