3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A; class A { function a(){ echo "a"; } } namespace B; class A { function a(){ echo "b"; } } (new \A\A)->a();//a (new \B\A)->a();//b
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/faGAU
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $0      'A%5CA'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'a'
          3        DO_FCALL                                      0          
   17     4        NEW                                              $3      'B%5CA'
          5        DO_FCALL                                      0          
          6        INIT_METHOD_CALL                                         $3, 'a'
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

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

End of function a

End of class A\A.

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

End of function a

End of class B\A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.64 ms | 1002 KiB | 13 Q