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 \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/vnsTO
function name:  (null)
number of ops:  6
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
   24     3        INIT_FCALL                                               'foo%5Cabc'
          4        DO_FCALL                                      0          
   37     5      > RETURN                                                   1

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