3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace { function foo($where) { echo "{$where}:\n"; debug_print_backtrace(); } call_user_func("foo", "No namespace"); echo "\n"; } namespace bar { call_user_func("foo", "In a namespace"); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q3qk5
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                                   'foo'
          1        SEND_USER                                                    'No+namespace'
          2        DO_FCALL                                          0          
   12     3        ECHO                                                         '%0A'
   18     4        INIT_NS_FCALL_BY_NAME                                        'bar%5Ccall_user_func'
          5        SEND_VAL_EX                                                  'foo'
          6        SEND_VAL_EX                                                  'In+a+namespace'
          7        DO_FCALL                                          0          
   20     8      > RETURN                                                       1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q3qk5
function name:  foo
number of ops:  7
compiled vars:  !0 = $where
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   RECV                                                 !0      
    6     1        NOP                                                          
          2        FAST_CONCAT                                          ~1      !0, '%3A%0A'
          3        ECHO                                                         ~1
    7     4        INIT_FCALL                                                   'debug_print_backtrace'
          5        DO_ICALL                                                     
    8     6      > RETURN                                                       null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
138.67 ms | 2114 KiB | 16 Q