3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace www; class Base { public function ec() { echo "1111";} } class A extends namespace\Base {} namespace ttt; class Base { public function ec() { echo "222";} } class B extends A {} $a = new \ttt\B(); $a->ec();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BXcVK
function name:  (null)
number of ops:  7
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   DECLARE_CLASS                                            'ttt%5Cb', 'ttt%5Ca'
   14     1        NEW                                              $1      'ttt%5CB'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   15     4        INIT_METHOD_CALL                                         !0, 'ec'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class www\Base:
Function ec:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BXcVK
function name:  ec
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     '1111'
          1      > RETURN                                                   null

End of function ec

End of class www\Base.

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

End of function ec

End of class www\A.

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

End of function ec

End of class ttt\Base.

Class ttt\B: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.18 ms | 1394 KiB | 13 Q