3v4l.org

run code in 300+ 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";
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        ECHO                                                     'start%0A'
   18     4        INIT_FCALL_BY_NAME                                       'bla'
          5        DO_FCALL                                      0          
   20     6        ECHO                                                     '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 >   ECHO                                                     '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        ASSIGN                                           ~8      !0, $7
          7        TYPE_CHECK                                  128  ~9      ~8
          8        END_SILENCE                                              ~5
          9      > JMPZ                                                     ~9, ->45
    6    10    >   ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'type'
         11      > JMPZ                                                     ~10, ->15
         12    >   FETCH_DIM_R                                      ~11     !0, 'type'
         13        QM_ASSIGN                                        ~12     ~11
         14      > JMP                                                      ->16
         15    >   QM_ASSIGN                                        ~12     0
         16    >   ASSIGN                                                   !1, ~12
    7    17        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'message'
         18      > JMPZ                                                     ~14, ->22
         19    >   FETCH_DIM_R                                      ~15     !0, 'message'
         20        QM_ASSIGN                                        ~16     ~15
         21      > JMP                                                      ->23
         22    >   QM_ASSIGN                                        ~16     ''
         23    >   ASSIGN                                                   !2, ~16
    8    24        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'file'
         25      > JMPZ                                                     ~18, ->29
         26    >   FETCH_DIM_R                                      ~19     !0, 'file'
         27        QM_ASSIGN                                        ~20     ~19
         28      > JMP                                                      ->30
         29    >   QM_ASSIGN                                        ~20     ''
         30    >   ASSIGN                                                   !3, ~20
    9    31        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'line'
         32      > JMPZ                                                     ~22, ->36
         33    >   FETCH_DIM_R                                      ~23     !0, 'line'
         34        QM_ASSIGN                                        ~24     ~23
         35      > JMP                                                      ->37
         36    >   QM_ASSIGN                                        ~24     ''
         37    >   ASSIGN                                                   !4, ~24
   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 8.0.0


preferences:
183.83 ms | 1400 KiB | 19 Q