3v4l.org

run code in 500+ PHP versions simultaneously
<?php preg_match('/# Input\n(# (?:.*?))# Output/s', '# Input # data/raw/file1 # data/raw/file2 # Output # data/interim/file1 # data/interim/file2', $match); $matched = preg_split('/# /', $match[1], -1, PREG_SPLIT_NO_EMPTY); print_r($matched);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dAcRp
function name:  (null)
number of ops:  17
compiled vars:  !0 = $match, !1 = $matched
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'preg_match'
          1        SEND_VAL                                                     '%2F%23+Input%5Cn%28%23+%28%3F%3A.%2A%3F%29%29%23+Output%2Fs'
          2        SEND_VAL                                                     '%23+Input%0A%23+data%2Fraw%2Ffile1%0A%23+data%2Fraw%2Ffile2%0A%0A%23+Output%0A%23+data%2Finterim%2Ffile1%0A%23+data%2Finterim%2Ffile2'
    8     3        SEND_REF                                                     !0
    2     4        DO_ICALL                                                     
    9     5        INIT_FCALL                                                   'preg_split'
          6        SEND_VAL                                                     '%2F%23+%2F'
          7        FETCH_DIM_R                                          ~3      !0, 1
          8        SEND_VAL                                                     ~3
          9        SEND_VAL                                                     -1
         10        SEND_VAL                                                     1
         11        DO_ICALL                                             $4      
         12        ASSIGN                                                       !1, $4
   10    13        INIT_FCALL                                                   'print_r'
         14        SEND_VAR                                                     !1
         15        DO_ICALL                                                     
         16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.94 ms | 2615 KiB | 16 Q