3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace { function foo () { echo "Global\n"; } } namespace Bar { function foo() { echo "Bar\n"; } } namespace Baz { use Bar as Blob; use Bar\foo; foo(); \Bar\foo(); Blob\foo(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lhALe
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   19     0  E >   INIT_NS_FCALL_BY_NAME                                        'Baz%5Cfoo'
          1        DO_FCALL                                          0          
   20     2        INIT_FCALL                                                   'bar%5Cfoo'
          3        DO_FCALL                                          0          
   21     4        INIT_FCALL                                                   'bar%5Cfoo'
          5        DO_FCALL                                          0          
   22     6      > RETURN                                                       1

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

End of function foo

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

End of function bar%5Cfoo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.66 ms | 2944 KiB | 16 Q