3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo { class Xyz {} function abc () {} } namespace bar { use foo\Xyz; use foo\abc; function abc() { echo 'asdf'; } var_dump(new Xyz()); // instantiates \foo\Xyz var_dump(\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/2cOm5
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   INIT_NS_FCALL_BY_NAME                                    'bar%5Cvar_dump'
          1        NEW                                              $0      'foo%5CXyz'
          2        DO_FCALL                                      0          
          3        SEND_VAR_NO_REF_EX                                       $0
          4        DO_FCALL                                      0          
   26     5        INIT_NS_FCALL_BY_NAME                                    'bar%5Cvar_dump'
          6        INIT_FCALL                                               'foo%5Cabc'
          7        DO_FCALL                                      0  $3      
          8        SEND_VAR_NO_REF_EX                                       $3
          9        DO_FCALL                                      0          
   39    10      > RETURN                                                   1

Function foo%5Cabc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2cOm5
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

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

End of function bar%5Cabc

Class foo\Xyz: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.95 ms | 1389 KiB | 16 Q