3v4l.org

run code in 300+ PHP versions simultaneously
<?php function function_stack() { $class = new ClassStack(); $class->methodStack(); } class ClassStack { public function methodStack() { print_r(debug_backtrace()); } } call_user_func('function_stack');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hIjHf
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'function_stack'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Function function_stack:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hIjHf
function name:  function_stack
number of ops:  6
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $1      'ClassStack'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    5     3        INIT_METHOD_CALL                                         !0, 'methodStack'
          4        DO_FCALL                                      0          
    6     5      > RETURN                                                   null

End of function function_stack

Class ClassStack:
Function methodstack:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hIjHf
function name:  methodStack
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'print_r'
          1        INIT_FCALL                                               'debug_backtrace'
          2        DO_ICALL                                         $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
   11     5      > RETURN                                                   null

End of function methodstack

End of class ClassStack.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.29 ms | 1397 KiB | 18 Q