3v4l.org

run code in 300+ PHP versions simultaneously
<?php function my_func() { 1 / 0; } function do_backtrace() { print_r(debug_backtrace()); } set_error_handler('do_backtrace'); call_user_func('my_func');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ieOGP
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'do_backtrace'
          2        DO_ICALL                                                 
    6     3        INIT_FCALL                                               'my_func'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function my_func:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ieOGP
function name:  my_func
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DIV                                              ~0      1, 0
          1        FREE                                                     ~0
          2      > RETURN                                                   null

End of function my_func

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

End of function do_backtrace

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.81 ms | 1401 KiB | 20 Q