3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function bar() { $x = debug_backtrace(); trigger_error("bla", E_USER_NOTICE); var_dump(func_get_args()); } static function Baz() { $x = debug_backtrace(); var_dump(func_get_args()); } } (new Foo())->bar(1,2,3); Foo::Baz(1,2,3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kkF6l
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $0      'Foo'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'bar'
          3        SEND_VAL_EX                                              1
          4        SEND_VAL_EX                                              2
          5        SEND_VAL_EX                                              3
          6        DO_FCALL                                      0          
   16     7        INIT_STATIC_METHOD_CALL                                  'Foo', 'Baz'
          8        SEND_VAL                                                 1
          9        SEND_VAL                                                 2
         10        SEND_VAL                                                 3
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kkF6l
function name:  bar
number of ops:  12
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'debug_backtrace'
          1        DO_ICALL                                         $1      
          2        ASSIGN                                                   !0, $1
    6     3        INIT_FCALL                                               'trigger_error'
          4        SEND_VAL                                                 'bla'
          5        SEND_VAL                                                 1024
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'var_dump'
          8        FUNC_GET_ARGS                                    ~4      
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                                 
    8    11      > RETURN                                                   null

End of function bar

Function baz:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kkF6l
function name:  Baz
number of ops:  8
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'debug_backtrace'
          1        DO_ICALL                                         $1      
          2        ASSIGN                                                   !0, $1
   11     3        INIT_FCALL                                               'var_dump'
          4        FUNC_GET_ARGS                                    ~3      
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                                 
   12     7      > RETURN                                                   null

End of function baz

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.18 ms | 1396 KiB | 19 Q