3v4l.org

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

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rs8pn
function name:  f
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $0      'c'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'm'
          3        DO_FCALL                                      0          
   15     4      > RETURN                                                   null

End of function f

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

End of function m

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

End of function trace

End of class c.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.82 ms | 1398 KiB | 18 Q