3v4l.org

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

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

End of function foo%5Cfoo

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

End of function bar%5Cfoo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.01 ms | 1401 KiB | 16 Q