3v4l.org

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

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


preferences:
146.17 ms | 1397 KiB | 16 Q