3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '[this is block this is also same "block" this is same block another same block] new block! another new block! [this is new block this is also a new block]'; print_r(preg_split('/(\[[^]]+])|\R/', $string, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WTIe6
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%5Bthis+is+block%0Athis+is+also+same+%22block%22%0Athis+is+same+block%0A%0Aanother+same+block%5D%0Anew+block%21%0Aanother+new+block%21%0A%5Bthis+is+new+block%0Athis+is+also+a+new+block%5D'
   11     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'preg_split'
          3        SEND_VAL                                                 '%2F%28%5C%5B%5B%5E%5D%5D%2B%5D%29%7C%5CR%2F'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 -1
          6        SEND_VAL                                                 3
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
127.73 ms | 1398 KiB | 17 Q