3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ExceptionThatExists extends Exception { // } try { throw new ExceptionThatExists(); } catch (NonExistentException $exception) { var_dump('Caught NonExistentException'); } catch (ExceptionThatExists $exception) { var_dump('Caught ExceptionThatExists'); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 4
Branch analysis from position: 4
2 jumps found. (Code = 107) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
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: 9
2 jumps found. (Code = 107) Position 1 = 10, Position 2 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 9
Branch analysis from position: 9
filename:       /in/Aneo6
function name:  (null)
number of ops:  14
compiled vars:  !0 = $exception
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'ExceptionThatExists'
          1        DO_FCALL                                      0          
          2      > THROW                                         0          $1
          3*       JMP                                                      ->13
   10     4  E > > CATCH                                                    'NonExistentException', ->9
   11     5    >   INIT_FCALL                                               'var_dump'
          6        SEND_VAL                                                 'Caught+NonExistentException'
          7        DO_ICALL                                                 
          8      > JMP                                                      ->13
   12     9  E > > CATCH                                       last         'ExceptionThatExists'
   13    10    >   INIT_FCALL                                               'var_dump'
         11        SEND_VAL                                                 'Caught+ExceptionThatExists'
         12        DO_ICALL                                                 
   14    13    > > RETURN                                                   1

Class ExceptionThatExists: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.28 ms | 1436 KiB | 14 Q