3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern_without_interpolation = <<<'EOD' / \d+ # one or more digits \ # a single space \p{L}+ # one or more letters \# # a literal hash symbol /ux EOD; if (preg_match($pattern_without_interpolation, '1 pound#', $m)) { echo $m[0]; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/FbDX5
function name:  (null)
number of ops:  10
compiled vars:  !0 = $pattern_without_interpolation, !1 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%0A%5Cd%2B++++++%23+one+or+more+digits%0A%5C++++++++%23+a+single+space%0A%5Cp%7BL%7D%2B+++%23+one+or+more+letters%0A%5C%23+++++++%23+a+literal+hash+symbol%0A%2Fux'
   11     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '1+pound%23'
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $3      
          6      > JMPZ                                                     $3, ->9
   12     7    >   FETCH_DIM_R                                      ~4      !1, 0
          8        ECHO                                                     ~4
   13     9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.08 ms | 1003 KiB | 14 Q