3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.08 ms | 1395 KiB | 13 Q