3v4l.org

run code in 300+ PHP versions simultaneously
<?php class NonFatalException extends Exception { } try { throw new NonFatalException("hello"); } catch(SomeException $e) { // some error handling } catch(NonFatalException $e) { echo "caught nonfatal"; throw $e; } catch (Exception $e) { echo "caught general"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 5
Branch analysis from position: 5
2 jumps found. (Code = 107) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 107) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 107) Position 1 = 12, Position 2 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 7
Branch analysis from position: 7
Found catch point at position: 11
Branch analysis from position: 11
filename:       /in/WA8Vg
function name:  (null)
number of ops:  14
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $1      'NonFatalException'
          1        SEND_VAL_EX                                              'hello'
          2        DO_FCALL                                      0          
          3      > THROW                                         0          $1
          4*       JMP                                                      ->13
    8     5  E > > CATCH                                                    'SomeException', ->7
          6    > > JMP                                                      ->13
   10     7  E > > CATCH                                                    'NonFatalException', ->11
   11     8    >   ECHO                                                     'caught+nonfatal'
   12     9      > THROW                                         0          !0
         10*       JMP                                                      ->13
   13    11  E > > CATCH                                       last         'Exception'
   14    12    >   ECHO                                                     'caught+general'
   15    13    > > RETURN                                                   1

Class NonFatalException: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.55 ms | 1394 KiB | 13 Q