3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { class MyException extends Exception {}; try { throw new MyException; } catch (Exception $e) { echo "1:"; throw $e; }catch (MyException $e) { echo "2:"; throw $e; }} catch (Exception $e) { echo get_class($e); }?>
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 = 9
Branch analysis from position: 6
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 107) Position 1 = 10, Position 2 = -2
Branch analysis from position: 10
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 9
Branch analysis from position: 9
Found catch point at position: 13
Branch analysis from position: 13
2 jumps found. (Code = 107) Position 1 = 14, Position 2 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Dq14R
function name:  (null)
number of ops:  17
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'myexception', 'exception'
    5     1        NEW                                              $1      'MyException'
          2        DO_FCALL                                      0          
          3      > THROW                                         0          $1
          4*       JMP                                                      ->12
    7     5  E > > CATCH                                                    'Exception', ->9
    8     6    >   ECHO                                                     '1%3A'
    9     7      > THROW                                         0          !0
          8*       JMP                                                      ->12
   10     9  E > > CATCH                                       last         'MyException'
   11    10    >   ECHO                                                     '2%3A'
   12    11      > THROW                                         0          !0
         12*       JMP                                                      ->16
   14    13  E > > CATCH                                       last         'Exception'
   15    14    >   GET_CLASS                                        ~3      !0
         15        ECHO                                                     ~3
   16    16      > RETURN                                                   1

Class MyException: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.56 ms | 1394 KiB | 13 Q