3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { throw new \Exception(); } catch (\Exception $e) { echo "Caught TestException ('{$e->getMessage()}')\n{$e}\n"; } finally { echo 'a'; }
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
2 jumps found. (Code = 162) Position 1 = 15, Position 2 = 14
Branch analysis from position: 15
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ap5hQ
function name:  (null)
number of ops:  18
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                                                      ->13
    6     4  E > > CATCH                                       last         'Exception'
    7     5    >   ROPE_INIT                                     5  ~6      'Caught+TestException+%28%27'
          6        INIT_METHOD_CALL                                         !0, 'getMessage'
          7        DO_FCALL                                      0  $4      
          8        ROPE_ADD                                      1  ~6      ~6, $4
          9        ROPE_ADD                                      2  ~6      ~6, '%27%29%0A'
         10        ROPE_ADD                                      3  ~6      ~6, !0
         11        ROPE_END                                      4  ~5      ~6, '%0A'
         12        ECHO                                                     ~5
    9    13      > FAST_CALL                                                ->15
         14    > > JMP                                                      ->17
   10    15    >   ECHO                                                     'a'
         16      > FAST_RET                                                 
   11    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.44 ms | 1398 KiB | 13 Q