3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace { function foo() { var_dump(__FUNCTION__); } } namespace Bar { function defineFoo() { function foo() { var_dump(__FUNCTION__); } } foo(); defineFoo(); foo(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oveNN
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_NS_FCALL_BY_NAME                                    'Bar%5Cfoo'
          1        DO_FCALL                                      0          
   17     2        INIT_NS_FCALL_BY_NAME                                    'Bar%5CdefineFoo'
          3        DO_FCALL                                      0          
   18     4        INIT_NS_FCALL_BY_NAME                                    'Bar%5Cfoo'
          5        DO_FCALL                                      0          
   19     6      > RETURN                                                   1

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

End of function foo

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

End of function bar%5Cdefinefoo

Function %00bar%5Cfoo%2Fin%2FoveNN%3A11%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oveNN
function name:  Bar\foo
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_NS_FCALL_BY_NAME                                    'Bar%5Cvar_dump'
          1        SEND_VAL_EX                                              'Bar%5Cfoo'
          2        DO_FCALL                                      0          
   13     3      > RETURN                                                   null

End of function %00bar%5Cfoo%2Fin%2FoveNN%3A11%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.04 ms | 1398 KiB | 18 Q