3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { echo 'Throw Exception' . PHP_EOL; throw new Exception(); } catch (Exception $exception) { echo 'Throw Exception 2' . PHP_EOL; throw new Exception('Exception 2'); } finally { echo 'Dispatch Event' . PHP_EOL; } echo 'CONTINUE?';
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
filename:       /in/ckQDg
function name:  (null)
number of ops:  17
compiled vars:  !0 = $exception
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'Throw+Exception%0A'
    5     1        NEW                                              $2      'Exception'
          2        DO_FCALL                                      0          
          3      > THROW                                         0          $2
          4*       JMP                                                      ->11
    6     5  E > > CATCH                                       last         'Exception'
    7     6    >   ECHO                                                     'Throw+Exception+2%0A'
    8     7        NEW                                              $4      'Exception'
          8        SEND_VAL_EX                                              'Exception+2'
          9        DO_FCALL                                      0          
         10      > THROW                                         0          $4
    9    11*       FAST_CALL                                                ->13
         12*       JMP                                                      ->15
   10    13*       ECHO                                                     'Dispatch+Event%0A'
         14*       FAST_RET                                                 
   13    15*       ECHO                                                     'CONTINUE%3F'
         16*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.04 ms | 1393 KiB | 13 Q