3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.64 ms | 1393 KiB | 13 Q