3v4l.org

run code in 300+ PHP versions simultaneously
<?php register_shutdown_function('fatalHandler'); function fatalHandler() { echo "fatal handler\n"; } try { trigger_error("Fatal error", E_USER_ERROR); } catch (Exception $e) { echo "exception\n"; } finally { echo "finally\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 162) Position 1 = 12, Position 2 = 11
Branch analysis from position: 12
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 8
Branch analysis from position: 8
2 jumps found. (Code = 107) Position 1 = 9, Position 2 = -2
Branch analysis from position: 9
2 jumps found. (Code = 162) Position 1 = 12, Position 2 = 11
Branch analysis from position: 12
Branch analysis from position: 11
filename:       /in/OlF5J
function name:  (null)
number of ops:  15
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'register_shutdown_function'
          1        SEND_VAL                                                 'fatalHandler'
          2        DO_ICALL                                                 
   10     3        INIT_FCALL                                               'trigger_error'
          4        SEND_VAL                                                 'Fatal+error'
          5        SEND_VAL                                                 256
          6        DO_ICALL                                                 
          7      > JMP                                                      ->10
   12     8  E > > CATCH                                       last         'Exception'
   14     9    >   ECHO                                                     'exception%0A'
   17    10    > > FAST_CALL                                                ->12
         11    > > JMP                                                      ->14
   18    12    >   ECHO                                                     'finally%0A'
         13      > FAST_RET                                                 
   19    14    > > RETURN                                                   1

Function fatalhandler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OlF5J
function name:  fatalHandler
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'fatal+handler%0A'
    6     1      > RETURN                                                   null

End of function fatalhandler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.15 ms | 1395 KiB | 17 Q