3v4l.org

run code in 300+ PHP versions simultaneously
<?php class wpdb { function bail() { wp_die(); } } function wp_die() { $stacktrace = debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS, 2 ); $last = array_pop( $stacktrace ); var_dump($last); } function a() { b(); } function b() { c(); } function c() { d(); } function d() { $a = new wpdb(); $a->bail(); } a();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FPvfn
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   32     0  E >   INIT_FCALL                                               'a'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

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

End of function wp_die

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

End of function a

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

End of function b

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

End of function c

Function d:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FPvfn
function name:  d
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   NEW                                              $1      'wpdb'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   29     3        INIT_METHOD_CALL                                         !0, 'bail'
          4        DO_FCALL                                      0          
   30     5      > RETURN                                                   null

End of function d

Class wpdb:
Function bail:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FPvfn
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:
164.58 ms | 1403 KiB | 20 Q