3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.38 ms | 1395 KiB | 13 Q