3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! function foo(){ bar(); } function bar() { foobar(); } function foobar() { foobared(); } function foobared() { if (PHP_VERSION >= '5.4') var_dump(debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 2)); else var_dump(debug_backtrace()); } foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JPAQ6
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   INIT_FCALL                                               'foo'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

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

End of function foo

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

End of function bar

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

End of function foobar

Function foobared:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 9
Branch analysis from position: 1
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JPAQ6
function name:  foobared
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E > > JMPZ                                                     <true>, ->9
   18     1    >   INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'debug_backtrace'
          3        SEND_VAL                                                 1
          4        SEND_VAL                                                 2
          5        DO_ICALL                                         $0      
          6        SEND_VAR                                                 $0
          7        DO_ICALL                                                 
          8      > JMP                                                      ->14
   20     9    >   INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'debug_backtrace'
         11        DO_ICALL                                         $2      
         12        SEND_VAR                                                 $2
         13        DO_ICALL                                                 
   21    14    > > RETURN                                                   null

End of function foobared

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.26 ms | 1403 KiB | 18 Q