3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.76 ms | 1423 KiB | 13 Q