3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { print "try body\n"; throw new Exception("main"); } catch (Exception $e) { print "catch body\n"; throw $e; } finally { print "finally body\n"; var_dump($e); }
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
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/lBo8I
function name:  (null)
number of ops:  17
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'try+body%0A'
    5     1        NEW                                              $2      'Exception'
          2        SEND_VAL_EX                                              'main'
          3        DO_FCALL                                      0          
          4      > THROW                                         0          $2
          5*       JMP                                                      ->9
    6     6  E > > CATCH                                       last         'Exception'
    7     7    >   ECHO                                                     'catch+body%0A'
    8     8      > THROW                                         0          !0
    9     9*       FAST_CALL                                                ->11
         10*       JMP                                                      ->16
   10    11*       ECHO                                                     'finally+body%0A'
   11    12*       INIT_FCALL                                               'var_dump'
         13*       SEND_VAR                                                 !0
         14*       DO_ICALL                                                 
         15*       FAST_RET                                                 
   12    16*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.87 ms | 1386 KiB | 15 Q