3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = <<<DOC # (1296) {20} [529] [1496] [411] # (MONDAY ) (1296) # (646) {20} (BEACH 7) [20 Mtrs] { 03 Foot } # {19} [455] [721] (1296) (SUNDAY ) [2741] (MONDAY (WEDNESDAY {20} # {19} (1296) DOC; if (preg_match_all('~^#|\[\d+]|\(\d+\)|{\d+}~m', $s, $m)) { echo preg_replace('~(?!^)#~', "\n#", implode(" ", $m[0])); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 18
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/JmOPv
function name:  (null)
number of ops:  19
compiled vars:  !0 = $s, !1 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%23+%281296%29+%7B20%7D+%5B529%5D+%5B1496%5D+%5B411%5D%0A%23+%28MONDAY+%29+%281296%29%0A%23+%28646%29+%7B20%7D+%28BEACH+7%29+%5B20+Mtrs%5D+%7B+03+Foot+%7D%0A%23+%7B19%7D+%5B455%5D+%5B721%5D+%281296%29+%28SUNDAY+%29+%5B2741%5D+%28MONDAY+%28WEDNESDAY+%7B20%7D%0A%23+%7B19%7D+%281296%29'
   10     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%7E%5E%23%7C%5C%5B%5Cd%2B%5D%7C%5C%28%5Cd%2B%5C%29%7C%7B%5Cd%2B%7D%7Em'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $3      
          6      > JMPZ                                                     $3, ->18
   11     7    >   INIT_FCALL                                               'preg_replace'
          8        SEND_VAL                                                 '%7E%28%3F%21%5E%29%23%7E'
          9        SEND_VAL                                                 '%0A%23'
         10        INIT_FCALL                                               'implode'
         11        SEND_VAL                                                 '+'
         12        FETCH_DIM_R                                      ~4      !1, 0
         13        SEND_VAL                                                 ~4
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        DO_ICALL                                         $6      
         17        ECHO                                                     $6
   12    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.34 ms | 1015 KiB | 16 Q