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 = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 162) Position 1 = 10, Position 2 = 9
Branch analysis from position: 10
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 2
Branch analysis from position: 2
2 jumps found. (Code = 107) Position 1 = 3, Position 2 = -2
Branch analysis from position: 3
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/G7Wm8
function name:  (null)
number of ops:  14
compiled vars:  !0 = $exception
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'Throw+Exception%0A'
          1      > JMP                                                      ->8
    6     2  E > > CATCH                                       last         'Exception'
    7     3    >   ECHO                                                     'Throw+Exception+2%0A'
    8     4        NEW                                              $2      'Exception'
          5        SEND_VAL_EX                                              'Exception+2'
          6        DO_FCALL                                      0          
          7      > THROW                                         0          $2
    9     8    > > FAST_CALL                                                ->10
          9    > > JMP                                                      ->12
   10    10    >   ECHO                                                     'Dispatch+Event%0A'
         11      > FAST_RET                                                 
   13    12    >   ECHO                                                     'CONTINUE%3F'
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.92 ms | 1393 KiB | 13 Q