3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
259.68 ms | 1395 KiB | 16 Q