3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.29 ms | 1397 KiB | 13 Q