3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace MyNamespace\Overwrite; function test() { echo 1; } namespace MyNamespace\Another; function test() { echo 2; } echo __NAMESPACE__, test(); \MyNamespace\Overwrite\test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fapQg
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   ECHO                                                     'MyNamespace%5CAnother'
   19     1        INIT_NS_FCALL_BY_NAME                                    'MyNamespace%5CAnother%5Ctest'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
   21     4        INIT_FCALL                                               'mynamespace%5Coverwrite%5Ctest'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Function mynamespace%5Coverwrite%5Ctest:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fapQg
function name:  MyNamespace\Overwrite\test
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     1
    8     1      > RETURN                                                   null

End of function mynamespace%5Coverwrite%5Ctest

Function mynamespace%5Canother%5Ctest:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fapQg
function name:  MyNamespace\Another\test
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ECHO                                                     2
   15     1      > RETURN                                                   null

End of function mynamespace%5Canother%5Ctest

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.1 ms | 1397 KiB | 15 Q