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";} } use \www\A as A; 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/LdNZ9
function name:  (null)
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $1      'ttt%5CB'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        INIT_METHOD_CALL                                         !0, 'ec'
          4        DO_FCALL                                      0          
          5      > 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/LdNZ9
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/LdNZ9
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/LdNZ9
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:
Function ec:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LdNZ9
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 ttt\B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.35 ms | 1395 KiB | 13 Q