3v4l.org

run code in 300+ PHP versions simultaneously
<?php try{ try{ throw new Exception("\nFirst exception: ".__LINE__); }catch(Exception $e1){ echo "\nFirst try-catch: ".$e1->getMessage(); throw $e1; } }catch(Exception $e){ echo "\nSecond try-catch: ".$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: 12
Branch analysis from position: 12
2 jumps found. (Code = 107) Position 1 = 13, Position 2 = -2
Branch analysis from position: 13
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
filename:       /in/E4Yb1
function name:  (null)
number of ops:  23
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                                              '%0AFirst+exception%3A+4'
          2        DO_FCALL                                      0          
          3      > THROW                                         0          $3
          4*       JMP                                                      ->11
    5     5  E > > CATCH                                       last         'Exception'
    6     6    >   INIT_METHOD_CALL                                         !0, 'getMessage'
          7        DO_FCALL                                      0  $5      
          8        CONCAT                                           ~6      '%0AFirst+try-catch%3A+', $5
          9        ECHO                                                     ~6
    7    10      > THROW                                         0          !0
         11*       JMP                                                      ->17
    9    12  E > > CATCH                                       last         'Exception'
   10    13    >   INIT_METHOD_CALL                                         !1, 'getMessage'
         14        DO_FCALL                                      0  $7      
         15        CONCAT                                           ~8      '%0ASecond+try-catch%3A+', $7
         16        ECHO                                                     ~8
   11    17      > FAST_CALL                                                ->19
         18    > > JMP                                                      ->21
   12    19    >   ECHO                                                     '%0Afirst+finally'
         20      > FAST_RET                                                 
   15    21    >   ECHO                                                     '%0Adone'
   16    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.87 ms | 1394 KiB | 13 Q