3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace { function test() { echo __FUNCTION__; } } namespace Foo { function test() { echo __FUNCTION__; } } namespace Foo { use \test; test(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EBdLQ
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   17     0  E >   INIT_NS_FCALL_BY_NAME                                        'Foo%5Ctest'
          1        DO_FCALL                                          0          
   18     2      > RETURN                                                       1

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

End of function test

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

End of function foo%5Ctest

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
128.63 ms | 478 KiB | 8 Q