3v4l.org

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

Function mynamespace%5Coverwrite%5Ctest:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9rkEs
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/9rkEs
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:
185.71 ms | 1397 KiB | 15 Q