3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { echo "line 1\n"; throw new RuntimeException('exception 1'); } catch (RuntimeException $e) { echo "line 2\n"; throw new Exception('exception 2', null, $e); } catch (Exception $e) { echo "line 3\n"; } finally { echo "line 4\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 6
Branch analysis from position: 6
2 jumps found. (Code = 107) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 107) Position 1 = 16, Position 2 = -2
Branch analysis from position: 16
2 jumps found. (Code = 162) Position 1 = 19, Position 2 = 18
Branch analysis from position: 19
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 15
Branch analysis from position: 15
filename:       /in/Vehjf
function name:  (null)
number of ops:  22
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'line+1%0A'
    5     1        NEW                                              $2      'RuntimeException'
          2        SEND_VAL_EX                                              'exception+1'
          3        DO_FCALL                                      0          
          4      > THROW                                         0          $2
          5*       JMP                                                      ->17
    6     6  E > > CATCH                                                    'RuntimeException', ->15
    7     7    >   ECHO                                                     'line+2%0A'
    8     8        NEW                                              $4      'Exception'
          9        SEND_VAL_EX                                              'exception+2'
         10        SEND_VAL_EX                                              null
         11        SEND_VAR_EX                                              !0
         12        DO_FCALL                                      0          
         13      > THROW                                         0          $4
         14*       JMP                                                      ->17
    9    15  E > > CATCH                                       last         'Exception'
   10    16    >   ECHO                                                     'line+3%0A'
   11    17      > FAST_CALL                                                ->19
         18    > > JMP                                                      ->21
   12    19    >   ECHO                                                     'line+4%0A'
         20      > FAST_RET                                                 
   13    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.4 ms | 1385 KiB | 13 Q