3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.9 ms | 1395 KiB | 15 Q