3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(){ list(, $caller) = debug_backtrace(false); echo '<pre>'; print_r($caller); } function haha(){ test(); } haha();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CATCQ
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'haha'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CATCQ
function name:  test
number of ops:  11
compiled vars:  !0 = $caller
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'debug_backtrace'
          1        SEND_VAL                                                 <false>
          2        DO_ICALL                                         $1      
          3        FETCH_LIST_R                                     $2      $1, 1
          4        ASSIGN                                                   !0, $2
          5        FREE                                                     $1
    4     6        ECHO                                                     '%3Cpre%3E'
    5     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    8    10      > RETURN                                                   null

End of function test

Function haha:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CATCQ
function name:  haha
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'test'
          1        DO_FCALL                                      0          
   12     2      > RETURN                                                   null

End of function haha

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.15 ms | 1398 KiB | 19 Q