3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { $GLOBALS['stack'] = debug_backtrace(); } ob_start('foo'); ob_get_flush(); echo 1; print_r($stack);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VOjRn
function name:  (null)
number of ops:  10
compiled vars:  !0 = $stack
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'ob_start'
          1        SEND_VAL                                                 'foo'
          2        DO_ICALL                                                 
   10     3        INIT_FCALL                                               'ob_get_flush'
          4        DO_ICALL                                                 
   12     5        ECHO                                                     1
   13     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

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

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.17 ms | 1395 KiB | 21 Q