3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = ' @see MyType this is a @description spanning over multiple lines. @ignore @link http://www.phpdoc.org'; preg_match_all('/(?:\A|\n)\s*(?<T_TAG_NAME>@[\pL-_]+).*(?=[\n|\Z])/ux', $content, $matches, PREG_SET_ORDER); var_dump($matches); preg_match_all('/(?<T_TAG_NAME>@[\pL-_]+)[\s]*(?<TAG_CONTENT>[\s\S]*)(?=\n\s*\@)/ux', $content, $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/gKKim
function name:  (null)
number of ops:  20
compiled vars:  !0 = $content, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '++%40see+MyType+this+is+a+%40description%0Aspanning+over+multiple+lines.%0A++%40ignore%0A++%40link+http%3A%2F%2Fwww.phpdoc.org'
    7     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%28%3F%3A%5CA%7C%5Cn%29%5Cs%2A%28%3F%3CT_TAG_NAME%3E%40%5B%5CpL-_%5D%2B%29.%2A%28%3F%3D%5B%5Cn%7C%5CZ%5D%29%2Fux'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        SEND_VAL                                                 2
          6        DO_ICALL                                                 
    8     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
    9    10        INIT_FCALL                                               'preg_match_all'
         11        SEND_VAL                                                 '%2F%28%3F%3CT_TAG_NAME%3E%40%5B%5CpL-_%5D%2B%29%5B%5Cs%5D%2A%28%3F%3CTAG_CONTENT%3E%5B%5Cs%5CS%5D%2A%29%28%3F%3D%5Cn%5Cs%2A%5C%40%29%2Fux'
         12        SEND_VAR                                                 !0
         13        SEND_REF                                                 !1
         14        SEND_VAL                                                 2
         15        DO_ICALL                                                 
   10    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.89 ms | 1386 KiB | 17 Q