3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { function m() { $this->v = 1; } } class D { function n() { C::m(); } } $d = new D(); $d->n(); echo $d->v; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QqIOU
function name:  (null)
number of ops:  8
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'D'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   13     3        INIT_METHOD_CALL                                         !0, 'n'
          4        DO_FCALL                                      0          
   14     5        FETCH_OBJ_R                                      ~5      !0, 'v'
          6        ECHO                                                     ~5
   15     7      > RETURN                                                   1

Class C:
Function m:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QqIOU
function name:  m
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN_OBJ                                               'v'
          1        OP_DATA                                                  1
    5     2      > RETURN                                                   null

End of function m

End of class C.

Class D:
Function n:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QqIOU
function name:  n
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_STATIC_METHOD_CALL                                  'C', 'm'
          1        DO_FCALL                                      0          
   10     2      > RETURN                                                   null

End of function n

End of class D.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.06 ms | 1394 KiB | 13 Q