3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace ns1 { function test() { echo __FUNCTION__; } $func = "test"; $func(); } namespace ns2 { function test() { echo __FUNCTION__; } $func(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jLYCX
function name:  (null)
number of ops:  6
compiled vars:  !0 = $func
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'test'
    6     1        INIT_DYNAMIC_CALL                                        !0
          2        DO_FCALL                                      0          
   10     3        INIT_DYNAMIC_CALL                                        !0
          4        DO_FCALL                                      0          
   11     5      > RETURN                                                   1

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

End of function ns1%5Ctest

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

End of function ns2%5Ctest

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.86 ms | 1393 KiB | 13 Q