3v4l.org

run code in 300+ PHP versions simultaneously
<?php $address = "#&#&#&"; $delimiter = '#&'; if (preg_match('~^(?:' . preg_quote($delimiter) . ')+$~', $address)) { echo 'Text comprised solely of one or more delimiting substrings'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/bA1QX
function name:  (null)
number of ops:  14
compiled vars:  !0 = $address, !1 = $delimiter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%23%26%23%26%23%26'
    4     1        ASSIGN                                                   !1, '%23%26'
    5     2        INIT_FCALL                                               'preg_match'
          3        INIT_FCALL                                               'preg_quote'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $4      
          6        CONCAT                                           ~5      '%7E%5E%28%3F%3A', $4
          7        CONCAT                                           ~6      ~5, '%29%2B%24%7E'
          8        SEND_VAL                                                 ~6
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $7      
         11      > JMPZ                                                     $7, ->13
    6    12    >   ECHO                                                     'Text+comprised+solely+of+one+or+more+delimiting+substrings'
    7    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.44 ms | 997 KiB | 15 Q