3v4l.org

run code in 300+ PHP versions simultaneously
<?php try{ try{ throw new Exception('First exception: '.__LINE__); }catch(Exception $e1){ echo $e1->getMessage(); throw new Exception('Second exception: '.__LINE__); } }catch(Exception $e){ echo $e->getMessage(); }finally{ echo "\nfirst finally"; } echo "\ndone"; ?>
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
2 jumps found. (Code = 162) Position 1 = 20, Position 2 = 19
Branch analysis from position: 20
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gu7Qh
function name:  (null)
number of ops:  24
compiled vars:  !0 = $e1, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $3      'Exception'
          1        SEND_VAL_EX                                              'First+exception%3A+4'
          2        DO_FCALL                                      0          
          3      > THROW                                         0          $3
          4*       JMP                                                      ->13
    5     5  E > > CATCH                                       last         'Exception'
    6     6    >   INIT_METHOD_CALL                                         !0, 'getMessage'
          7        DO_FCALL                                      0  $5      
          8        ECHO                                                     $5
    7     9        NEW                                              $6      'Exception'
         10        SEND_VAL_EX                                              'Second+exception%3A+7'
         11        DO_FCALL                                      0          
         12      > THROW                                         0          $6
         13*       JMP                                                      ->18
    9    14  E > > CATCH                                       last         'Exception'
   10    15    >   INIT_METHOD_CALL                                         !1, 'getMessage'
         16        DO_FCALL                                      0  $8      
         17        ECHO                                                     $8
   11    18      > FAST_CALL                                                ->20
         19    > > JMP                                                      ->22
   12    20    >   ECHO                                                     '%0Afirst+finally'
         21      > FAST_RET                                                 
   15    22    >   ECHO                                                     '%0Adone'
   16    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.66 ms | 1395 KiB | 13 Q