3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '[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]'; var_export(preg_split('~\[[^\]]*](*SKIP)(*FAIL)|\R~', $text));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZbhjS
function name:  (null)
number of ops:  9
compiled vars:  !0 = $text
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'
   12     1        INIT_FCALL                                               'var_export'
          2        INIT_FCALL                                               'preg_split'
          3        SEND_VAL                                                 '%7E%5C%5B%5B%5E%5C%5D%5D%2A%5D%28%2ASKIP%29%28%2AFAIL%29%7C%5CR%7E'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
133.42 ms | 1398 KiB | 17 Q