3v4l.org

run code in 300+ PHP versions simultaneously
<?php class wpdb { function bail() { wp_die(); } } function test() { var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2)); } register_shutdown_function('test'); function wp_die() { die('x'); } $a = new wpdb(); $a->bail();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NTeIZ
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'register_shutdown_function'
          1        SEND_VAL                                                 'test'
          2        DO_ICALL                                                 
   19     3        NEW                                              $2      'wpdb'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
   20     6        INIT_METHOD_CALL                                         !0, 'bail'
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

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

End of function test

Function wp_die:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/NTeIZ
function name:  wp_die
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E > > EXIT                                                     'x'
   17     1*     > RETURN                                                   null

End of function wp_die

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

End of function bail

End of class wpdb.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.24 ms | 1396 KiB | 19 Q