3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = <<<EOT Blablalbzdjsdf #drinkdelamerde qsifhsdfjmh omhwdmofihg #oh_yeah EOT; $result = []; preg_match_all('/((?<!\w)#\w+)/i', $subject, $result, PREG_PATTERN_ORDER); var_dump($result); for ($i = 0; $i < count($result[0]); $i++) { echo$result[0][$i], PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 13
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 13
Branch analysis from position: 22
Branch analysis from position: 13
filename:       /in/KXD17
function name:  (null)
number of ops:  23
compiled vars:  !0 = $subject, !1 = $result, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Blablalbzdjsdf+%23drinkdelamerde+qsifhsdfjmh+omhwdmofihg+%23oh_yeah'
    5     1        ASSIGN                                                   !1, <array>
    7     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAL                                                 '%2F%28%28%3F%3C%21%5Cw%29%23%5Cw%2B%29%2Fi'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !1
          6        SEND_VAL                                                 1
          7        DO_ICALL                                                 
    8     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
    9    11        ASSIGN                                                   !2, 0
         12      > JMP                                                      ->18
   10    13    >   FETCH_DIM_R                                      ~8      !1, 0
         14        FETCH_DIM_R                                      ~9      ~8, !2
         15        ECHO                                                     ~9
         16        ECHO                                                     '%0A'
    9    17        PRE_INC                                                  !2
         18    >   FETCH_DIM_R                                      ~11     !1, 0
         19        COUNT                                            ~12     ~11
         20        IS_SMALLER                                               !2, ~12
         21      > JMPNZ                                                    ~13, ->13
   11    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.58 ms | 1395 KiB | 17 Q