3v4l.org

run code in 300+ PHP versions simultaneously
<?php //I want the 'delimX' to be included as well: $str = "blah blah1 (delim1) blah blah2 (delim2) blah blah3 (delim3) blah blah3"; $result = preg_split ('~\(delim[0-9].*?\)~',$str ,-1, PREG_SPLIT_DELIM_CAPTURE); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E2WDh
function name:  (null)
number of ops:  12
compiled vars:  !0 = $str, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'blah+blah1+%28delim1%29+blah+blah2+%28delim2%29+blah+blah3+%28delim3%29+blah+blah3'
    4     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%7E%5C%28delim%5B0-9%5D.%2A%3F%5C%29%7E'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 -1
          5        SEND_VAL                                                 2
          6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !1, $3
    5     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.92 ms | 1394 KiB | 17 Q