3v4l.org

run code in 500+ PHP versions simultaneously
<?php simplexml_load_string('', NULL, LIBXML_NOCDATA); die(); 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 = 61) Position 1 = -2
filename:       /in/jj39J
function name:  (null)
number of ops:  23
compiled vars:  !0 = $rc, !1 = $rm
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'simplexml_load_string'
          1        SEND_VAL                                                     ''
          2        SEND_VAL                                                     null
          3        SEND_VAL                                                     16384
          4        DO_ICALL                                                     
    4     5      > INIT_FCALL                                                   'exit'
          6*       DO_ICALL                                                     
   17     7*       NEW                                                  $4      'ReflectionClass'
          8*       NEW                                                  $5      'T'
          9*       DO_FCALL                                          0          
         10*       SEND_VAR_NO_REF_EX                                           $5
         11*       DO_FCALL                                          0          
         12*       ASSIGN                                                       !0, $4
   18    13*       INIT_METHOD_CALL                                             !0, 'getMethod'
         14*       SEND_VAL_EX                                                  'actionDefault'
         15*       DO_FCALL                                          0  $9      
         16*       ASSIGN                                                       !1, $9
   19    17*       INIT_FCALL                                                   'var_dump'
         18*       INIT_METHOD_CALL                                             !1, 'getDocComment'
         19*       DO_FCALL                                          0  $11     
         20*       SEND_VAR                                                     $11
         21*       DO_ICALL                                                     
         22*     > RETURN                                                       1

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

End of function actiondefault

End of class T.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
117.85 ms | 503 KiB | 12 Q