3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.67 ms | 1395 KiB | 13 Q