3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo { function baz() { return 'foo.baz'; } } namespace bar { function baz() { return 'bar.baz'; } } namespace { use function foo\baz as foo_baz, bar\baz as bar_baz; var_dump(foo_baz()); var_dump(bar_baz()); echo "Done\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gX8Sl
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'foo%5Cbaz'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
   20     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'bar%5Cbaz'
          7        DO_FCALL                                      0  $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                                 
   21    10        ECHO                                                     'Done%0A'
   22    11      > RETURN                                                   1

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

End of function foo%5Cbaz

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

End of function bar%5Cbaz

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
210.96 ms | 1397 KiB | 17 Q