3v4l.org

run code in 500+ PHP versions simultaneously
<?php try { try { throw new Exception('try'); } finally { throw new Exception('finally'); } } catch (Exception $exception) { echo 'caught ' . $exception->getMessage(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 12
Branch analysis from position: 12
2 jumps found. (Code = 107) Position 1 = 13, Position 2 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Jknpm
function name:  (null)
number of ops:  18
compiled vars:  !0 = $exception
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   NEW                                                  $2      'Exception'
          1        SEND_VAL_EX                                                  'try'
          2        DO_FCALL                                          0          
          3      > THROW                                             0          $2
    6     4*       FAST_CALL                                                    ->6
          5*       JMP                                                          ->11
    7     6*       NEW                                                  $4      'Exception'
          7*       SEND_VAL_EX                                                  'finally'
          8*       DO_FCALL                                          0          
          9*       THROW                                             0          $4
         10*       FAST_RET                                                     
         11*       JMP                                                          ->17
    9    12  E > > CATCH                                           last         'Exception'
   10    13    >   INIT_METHOD_CALL                                             !0, 'getMessage'
         14        DO_FCALL                                          0  $6      
         15        CONCAT                                               ~7      'caught+', $6
         16        ECHO                                                         ~7
   11    17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.57 ms | 2342 KiB | 13 Q