3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { throw new \Exception('Exception'); } catch (\Exception $e) { throw new \Exception('New Exception'); } finally { try{ myclass2::test(); // spl_autoload_register function to load classes } catch (\Exception $ex) { var_dump('this is not expected:', $ex); // this is not expected but "New Exception" is caught here } }
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 = -2
Branch analysis from position: 6
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 15
Branch analysis from position: 15
2 jumps found. (Code = 107) Position 1 = 16, Position 2 = -2
Branch analysis from position: 16
1 jumps found. (Code = 163) Position 1 = -2
filename:       /in/TAkta
function name:  (null)
number of ops:  22
compiled vars:  !0 = $e, !1 = $ex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $3      'Exception'
          1        SEND_VAL_EX                                              'Exception'
          2        DO_FCALL                                      0          
          3      > THROW                                         0          $3
          4*       JMP                                                      ->10
    5     5  E > > CATCH                                       last         'Exception'
    6     6    >   NEW                                              $5      'Exception'
          7        SEND_VAL_EX                                              'New+Exception'
          8        DO_FCALL                                      0          
          9      > THROW                                         0          $5
    7    10*       FAST_CALL                                                ->12
         11*       JMP                                                      ->21
    9    12*       INIT_STATIC_METHOD_CALL                                  'myclass2', 'test'
         13*       DO_FCALL                                      0          
         14*       JMP                                                      ->20
   10    15  E > > CATCH                                       last         'Exception'
   11    16    >   INIT_FCALL                                               'var_dump'
         17        SEND_VAL                                                 'this+is+not+expected%3A'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
         20      > FAST_RET                                                 
   13    21*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.27 ms | 998 KiB | 14 Q