3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { throw new \Exception(); } catch(\Exception $e){ } finally { if($e) echo "exception was thrown..."; }
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 = 7, Position 2 = 6
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 9
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0W1PA
function name:  (null)
number of ops:  11
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $2      'Exception'
          1        DO_FCALL                                      0          
          2      > THROW                                         0          $2
          3*       JMP                                                      ->5
    7     4  E > > CATCH                                       last         'Exception'
   10     5    > > FAST_CALL                                                ->7
          6    > > JMP                                                      ->10
   11     7    > > JMPZ                                                     !0, ->9
          8    >   ECHO                                                     'exception+was+thrown...'
          9    > > FAST_RET                                                 
   12    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.56 ms | 1393 KiB | 13 Q