3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class wpdb { function bail() { wp_die(); } } function wp_die() { var_dump(debug_backtrace(0, 3)); die('x'); } $a = new wpdb(); $a->bail();
based on QOBSi
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QdpTs
function name:  (null)
number of ops:  8
compiled vars:  !0 = $a
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   NOP                                                      
   9     1        NOP                                                      
  14     2        NEW                                              $2      :-5
         3        DO_FCALL                                      0          
         4        ASSIGN                                                   !0, $2
  15     5        INIT_METHOD_CALL                                         !0, 'bail'
         6        DO_FCALL                                      0          
         7      > RETURN                                                   1

Function wp_die:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/QdpTs
function name:  wp_die
number of ops:  9
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                                                 0
         3        SEND_VAL                                                 3
         4        DO_ICALL                                         $0      
         5        SEND_VAR                                                 $0
         6        DO_ICALL                                                 
  11     7      > EXIT                                                     'x'
  12     8*     > 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/QdpTs
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 7.3.0