3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rc = new ReflectionClass('DOMDocument'); $rm = $rc->getMethod('load'); var_dump($rm->isUserDefined()); var_dump($rm->isInternal()); class Example { public function method() {} } $rc = new ReflectionClass('Example'); $rm = $rc->getMethod('method'); var_dump($rm->isUserDefined()); var_dump($rm->isInternal());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t8MOV
function name:  (null)
number of ops:  37
compiled vars:  !0 = $rc, !1 = $rm
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'ReflectionClass'
          1        SEND_VAL_EX                                              'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        INIT_METHOD_CALL                                         !0, 'getMethod'
          5        SEND_VAL_EX                                              'load'
          6        DO_FCALL                                      0  $5      
          7        ASSIGN                                                   !1, $5
    5     8        INIT_FCALL                                               'var_dump'
          9        INIT_METHOD_CALL                                         !1, 'isUserDefined'
         10        DO_FCALL                                      0  $7      
         11        SEND_VAR                                                 $7
         12        DO_ICALL                                                 
    6    13        INIT_FCALL                                               'var_dump'
         14        INIT_METHOD_CALL                                         !1, 'isInternal'
         15        DO_FCALL                                      0  $9      
         16        SEND_VAR                                                 $9
         17        DO_ICALL                                                 
   12    18        NEW                                              $11     'ReflectionClass'
         19        SEND_VAL_EX                                              'Example'
         20        DO_FCALL                                      0          
         21        ASSIGN                                                   !0, $11
   13    22        INIT_METHOD_CALL                                         !0, 'getMethod'
         23        SEND_VAL_EX                                              'method'
         24        DO_FCALL                                      0  $14     
         25        ASSIGN                                                   !1, $14
   14    26        INIT_FCALL                                               'var_dump'
         27        INIT_METHOD_CALL                                         !1, 'isUserDefined'
         28        DO_FCALL                                      0  $16     
         29        SEND_VAR                                                 $16
         30        DO_ICALL                                                 
   15    31        INIT_FCALL                                               'var_dump'
         32        INIT_METHOD_CALL                                         !1, 'isInternal'
         33        DO_FCALL                                      0  $18     
         34        SEND_VAR                                                 $18
         35        DO_ICALL                                                 
         36      > RETURN                                                   1

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

End of function method

End of class Example.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.75 ms | 998 KiB | 14 Q