3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.34 ms | 1394 KiB | 13 Q