3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { try { throw new Exception('oh noes'); } catch(Exception $e) { throw $e; } finally { var_dump('hello'); } } catch (Exception $ex) { var_dump((string) $ex); }
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: 14
Branch analysis from position: 14
2 jumps found. (Code = 107) Position 1 = 15, Position 2 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L0WYC
function name:  (null)
number of ops:  20
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                                              'oh+noes'
          2        DO_FCALL                                      0          
          3      > THROW                                         0          $3
          4*       JMP                                                      ->7
    5     5  E > > CATCH                                       last         'Exception'
    6     6    > > THROW                                         0          !0
    7     7*       FAST_CALL                                                ->9
          8*       JMP                                                      ->13
    8     9*       INIT_FCALL                                               'var_dump'
         10*       SEND_VAL                                                 'hello'
         11*       DO_ICALL                                                 
         12*       FAST_RET                                                 
         13*       JMP                                                      ->19
   10    14  E > > CATCH                                       last         'Exception'
   11    15    >   INIT_FCALL                                               'var_dump'
         16        CAST                                          6  ~6      !1
         17        SEND_VAL                                                 ~6
         18        DO_ICALL                                                 
   12    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.18 ms | 1395 KiB | 15 Q