3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = "<p>&nbsp;Lorem ipsum dolor [State] sit amet, consectetur [City] adipisicing [TopJob7] elit, sed do eiusmod [JobType]</p>"; $tagsReplace = preg_split('/(\[[^]]+\])/', $value, -1, PREG_SPLIT_DELIM_CAPTURE); print_r($tagsReplace);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L1smn
function name:  (null)
number of ops:  12
compiled vars:  !0 = $value, !1 = $tagsReplace
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cp%3E%26nbsp%3BLorem+ipsum+dolor+%5BState%5D+sit+amet%2C+consectetur+%5BCity%5D+adipisicing+%5BTopJob7%5D+elit%2C+sed+do+eiusmod+%5BJobType%5D%3C%2Fp%3E'
    4     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%2F%28%5C%5B%5B%5E%5D%5D%2B%5C%5D%29%2F'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 -1
          5        SEND_VAL                                                 2
          6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !1, $3
    5     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
208.75 ms | 952 KiB | 15 Q