3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Ch #RoKamb93 ajesop de Bourg #kin #kinnl 9 kunsho taffetas,bunughs rges, note florale,parfaite aseref'; $delimiters = array('#kin', '#kinnl', '#xxx'); $split = preg_split('/' . implode($delimiters, '|') . '/', $string); var_dump($split);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KdqgV
function name:  (null)
number of ops:  17
compiled vars:  !0 = $string, !1 = $delimiters, !2 = $split
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Ch+%23RoKamb93+ajesop+de+Bourg+%23kin+%23kinnl+9+kunsho+taffetas%2Cbunughs+rges%2C+note+florale%2Cparfaite+aseref'
    5     1        ASSIGN                                                   !1, <array>
    7     2        INIT_FCALL                                               'preg_split'
          3        INIT_FCALL                                               'implode'
          4        SEND_VAR                                                 !1
          5        SEND_VAL                                                 '%7C'
          6        DO_ICALL                                         $5      
          7        CONCAT                                           ~6      '%2F', $5
          8        CONCAT                                           ~7      ~6, '%2F'
          9        SEND_VAL                                                 ~7
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !2, $8
    8    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.65 ms | 1386 KiB | 19 Q