3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { throw new Exception(); } catch (Exception $e) { echo 'Caught it' . PHP_EOL; throw $e; } finally { echo 'Finally!'; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 4
Branch analysis from position: 4
2 jumps found. (Code = 107) Position 1 = 5, Position 2 = -2
Branch analysis from position: 5
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/iDkmu
function name:  (null)
number of ops:  12
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $2      'Exception'
          1        DO_FCALL                                      0          
          2      > THROW                                         0          $2
          3*       JMP                                                      ->7
    5     4  E > > CATCH                                       last         'Exception'
    6     5    >   ECHO                                                     'Caught+it%0A'
    7     6      > THROW                                         0          !0
    8     7*       FAST_CALL                                                ->9
          8*       JMP                                                      ->11
    9     9*       ECHO                                                     'Finally%21'
         10*       FAST_RET                                                 
   10    11*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.55 ms | 1393 KiB | 13 Q