3v4l.org

run code in 500+ PHP versions simultaneously
simplexml_load_string('', NULL, LIBXML_NOCDATA); die(); var_dump($rm->getDocComment()); <?php class T { /** * @GET test/resource */ public function actionDefault() { } } $rc = new ReflectionClass(new T()); $rm = $rc->getMethod('actionDefault'); var_dump($rm->getDocComment());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2KSCc
function name:  (null)
number of ops:  17
compiled vars:  !0 = $rc, !1 = $rm
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                         'simplexml_load_string%28%27%27%2C+NULL%2C+LIBXML_NOCDATA%29%3B%0Adie%28%29%3B%0A%0Avar_dump%28%24rm-%3EgetDocComment%28%29%29%3B%0A%0A'
   18     1        NEW                                                  $2      'ReflectionClass'
          2        NEW                                                  $3      'T'
          3        DO_FCALL                                          0          
          4        SEND_VAR_NO_REF_EX                                           $3
          5        DO_FCALL                                          0          
          6        ASSIGN                                                       !0, $2
   19     7        INIT_METHOD_CALL                                             !0, 'getMethod'
          8        SEND_VAL_EX                                                  'actionDefault'
          9        DO_FCALL                                          0  $7      
         10        ASSIGN                                                       !1, $7
   20    11        INIT_FCALL                                                   'var_dump'
         12        INIT_METHOD_CALL                                             !1, 'getDocComment'
         13        DO_FCALL                                          0  $9      
         14        SEND_VAR                                                     $9
         15        DO_ICALL                                                     
         16      > RETURN                                                       1

Class T:
Function actiondefault:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2KSCc
function name:  actionDefault
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   15     0  E > > RETURN                                                       null

End of function actiondefault

End of class T.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
125.78 ms | 498 KiB | 10 Q