3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo { class Xyz {} function abc () {} } namespace bar { use foo\Xyz; use foo\abc; new Xyz(); // instantiates \foo\Xyz abc(); // invokes \bar\abc regardless of the second use statement \foo\abc(); // it has to be invoked using the fully qualified name } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JfaGD
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   NEW                                              $0      'foo%5CXyz'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
   23     3        INIT_NS_FCALL_BY_NAME                                    'bar%5Cabc'
          4        DO_FCALL                                      0          
   24     5        INIT_FCALL                                               'foo%5Cabc'
          6        DO_FCALL                                      0          
   37     7      > RETURN                                                   1

Function foo%5Cabc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JfaGD
function name:  foo\abc
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   null

End of function foo%5Cabc

Class foo\Xyz: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.67 ms | 1396 KiB | 15 Q