3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.66 ms | 1394 KiB | 13 Q