3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo { class Xyz {} function abc () {} } namespace bar { use foo\Xyz as x; class Xyz {} var_dump(new X()); // instantiates \foo\Xyz } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C9Hes
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     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          
   32     5      > RETURN                                                   1

Function foo%5Cabc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C9Hes
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]
Class bar\Xyz: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.88 ms | 1394 KiB | 15 Q