3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = <<<REGEX / (?:\A|\n)\s* (@[\pL-_]+) \ * (?s:(.*?)) (?=\n\s*\@) /ux REGEX; $comment = <<<COMMENT @see MyTag this is a @description that spans multiple lines @internal @author Mike van Riel <me@mikevanriel.com> COMMENT; var_dump(preg_match_all($regex, $comment, $matches, PREG_SET_ORDER)); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IUMX1
function name:  (null)
number of ops:  15
compiled vars:  !0 = $regex, !1 = $comment, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2F%0A%28%3F%3A%5CA%7C%0A%29%5Cs%2A%0A%28%40%5B%5CpL-_%5D%2B%29%0A%5C+%2A%0A%28%3Fs%3A%28.%2A%3F%29%29%0A%28%3F%3D%0A%5Cs%2A%5C%40%29%0A%2Fux'
   12     1        ASSIGN                                                   !1, '%0A+%40see+MyTag+this+is+a+%40description%0Athat+spans+multiple+lines%0A+%40internal%0A+%40author+Mike+van+Riel+%3Cme%40mikevanriel.com%3E'
   20     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'preg_match_all'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        SEND_REF                                                 !2
          7        SEND_VAL                                                 2
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                                 
   21    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.17 ms | 1394 KiB | 17 Q