3v4l.org

run code in 200+ PHP versions simultaneously
<?php function shutdown() { echo "triggered\n"; if (@is_array($e = @error_get_last())) { $code = isset($e['type']) ? $e['type'] : 0; $msg = isset($e['message']) ? $e['message'] : ''; $file = isset($e['file']) ? $e['file'] : ''; $line = isset($e['line']) ? $e['line'] : ''; print_r( array( $code, $msg, $file, $line ) ); } } register_shutdown_function( 'shutdown' ); echo "start\n"; bla(); echo "end\n";
based on eaLnk
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4jWAs
function name:  (null)
number of ops:  8
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  14     0  E >   INIT_FCALL                                               'register_shutdown_function'
         1        SEND_VAL                                                 'shutdown'
         2        DO_ICALL                                                 
  16     3        ASSIGN_OBJ                                               'start%0A'
  18     4        INIT_FCALL_BY_NAME                                       'bla'
         5        DO_FCALL                                      0          
  20     6        ASSIGN_OBJ                                               'end%0A'
         7      > RETURN                                                   1

Function shutdown:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 45
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 22
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 29
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 36
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 36
Branch analysis from position: 33
Branch analysis from position: 36
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 29
Branch analysis from position: 26
Branch analysis from position: 29
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 22
Branch analysis from position: 19
Branch analysis from position: 22
Branch analysis from position: 45
filename:       /in/4jWAs
function name:  shutdown
number of ops:  46
compiled vars:  !0 = $e, !1 = $code, !2 = $msg, !3 = $file, !4 = $line
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   4     0  E >   ASSIGN_OBJ                                               'triggered%0A'
   5     1        BEGIN_SILENCE                                    ~5      
         2        BEGIN_SILENCE                                    ~6      
         3        INIT_FCALL                                               'error_get_last'
         4        DO_ICALL                                         $7      
         5        END_SILENCE                                              ~6
         6        QM_ASSIGN                                        $8      !0
         7        TYPE_CHECK                                  128  ~9      $8
         8        END_SILENCE                                              ~5
         9      > JMPZ                                                     ~9, ->45
   6    10    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~10     !0, 'type'
        11      > JMPZ                                                     ~10, ->15
        12    >   FETCH_DIM_R                                      ~11     !0, 'type'
        13        ASSIGN_BW_OR                                  0  ~12     ~11
        14      > JMP                                                      ->16
        15    >   ASSIGN_BW_OR                                  0  ~12     0
        16    >   QM_ASSIGN                                                !1
   7    17        ISSET_ISEMPTY_DIM_OBJ                         0  ~14     !0, 'message'
        18      > JMPZ                                                     ~14, ->22
        19    >   FETCH_DIM_R                                      ~15     !0, 'message'
        20        ASSIGN_BW_OR                                  0  ~16     ~15
        21      > JMP                                                      ->23
        22    >   ASSIGN_BW_OR                                  0  ~16     ''
        23    >   QM_ASSIGN                                                !2
   8    24        ISSET_ISEMPTY_DIM_OBJ                         0  ~18     !0, 'file'
        25      > JMPZ                                                     ~18, ->29
        26    >   FETCH_DIM_R                                      ~19     !0, 'file'
        27        ASSIGN_BW_OR                                  0  ~20     ~19
        28      > JMP                                                      ->30
        29    >   ASSIGN_BW_OR                                  0  ~20     ''
        30    >   QM_ASSIGN                                                !3
   9    31        ISSET_ISEMPTY_DIM_OBJ                         0  ~22     !0, 'line'
        32      > JMPZ                                                     ~22, ->36
        33    >   FETCH_DIM_R                                      ~23     !0, 'line'
        34        ASSIGN_BW_OR                                  0  ~24     ~23
        35      > JMP                                                      ->37
        36    >   ASSIGN_BW_OR                                  0  ~24     ''
        37    >   QM_ASSIGN                                                !4
  10    38        INIT_FCALL                                               'print_r'
        39        INIT_ARRAY                                       ~26     !1
        40        ADD_ARRAY_ELEMENT                                ~26     !2
        41        ADD_ARRAY_ELEMENT                                ~26     !3
        42        ADD_ARRAY_ELEMENT                                ~26     !4
        43        SEND_VAL                                                 ~26
        44        DO_ICALL                                                 
  12    45    > > RETURN                                                   null

End of function shutdown

Generated using Vulcan Logic Dumper, using php 7.4.0