3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = 'The quick [begin]brown fox[end] jumps over [begin]the lazy[end] dog.'; $array = preg_split('/\\[begin\\]|\\[end\\]/', $string, -1); print_r($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nlC9K
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'The+quick+%5Bbegin%5Dbrown+fox%5Bend%5D+jumps+over+%5Bbegin%5Dthe+lazy%5Bend%5D+dog.'
    4     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%2F%5C%5Bbegin%5C%5D%7C%5C%5Bend%5C%5D%2F'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 -1
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    5     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.93 ms | 2099 KiB | 13 Q