3v4l.org

run code in 500+ 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 = 12
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/JmOPv
function name:  (null)
number of ops:  13
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, ->12
   11     7    >   FETCH_DIM_R                                          ~4      !1, 0
          8        FRAMELESS_ICALL_2                implode             ~5      '+', ~4
          9        FRAMELESS_ICALL_3                preg_replace        ~6      '%7E%28%3F%21%5E%29%23%7E', '%0A%23'
         10        OP_DATA                                                      ~5
         11        ECHO                                                         ~6
   12    12    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
217.91 ms | 1880 KiB | 17 Q