3v4l.org

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

Class TestException: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.2 ms | 1696 KiB | 9 Q