3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { } class B implements I { } class C extends B { function foo() {} } $r = new \ReflectionClass('C'); var_export(\ReflectionClass::export($r, TRUE));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j0c2a
function name:  (null)
number of ops:  14
compiled vars:  !0 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'b'
   11     1        DECLARE_CLASS                                            'c', 'b'
   15     2        NEW                                              $1      'ReflectionClass'
          3        SEND_VAL_EX                                              'C'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $1
   16     6        INIT_FCALL                                               'var_export'
          7        INIT_STATIC_METHOD_CALL                                  'ReflectionClass', 'export'
          8        SEND_VAR_EX                                              !0
          9        SEND_VAL_EX                                              <true>
         10        DO_FCALL                                      0  $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Class I: [no user functions]
Class B: [no user functions]
Class C:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j0c2a
function name:  foo
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E > > RETURN                                                   null

End of function foo

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.36 ms | 1395 KiB | 15 Q