3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 2; try { throw new \Exception(); } catch (\Exception $e) { throw new \RuntimeException(null, null, $e); } finally { echo $a; }
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
filename:       /in/IBXv0
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 2
    6     1        NEW                                              $4      'Exception'
          2        DO_FCALL                                      0          
          3      > THROW                                         0          $4
          4*       JMP                                                      ->12
    7     5  E > > CATCH                                       last         'Exception'
    8     6    >   NEW                                              $6      'RuntimeException'
          7        SEND_VAL_EX                                              null
          8        SEND_VAL_EX                                              null
          9        SEND_VAR_EX                                              !1
         10        DO_FCALL                                      0          
         11      > THROW                                         0          $6
   10    12*       FAST_CALL                                                ->14
         13*       JMP                                                      ->16
   11    14*       ECHO                                                     !0
         15*       FAST_RET                                                 
   12    16*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.14 ms | 1393 KiB | 13 Q