3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { // throw new \Exception("test"); } catch(\Exception $e){ } finally { if(isset($e)) echo "exception was thrown with message: " . $e->getMessage(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
2 jumps found. (Code = 162) Position 1 = 4, Position 2 = 3
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 10
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 1
Branch analysis from position: 1
2 jumps found. (Code = 107) Position 1 = 2, Position 2 = -2
Branch analysis from position: 2
filename:       /in/5IdXD
function name:  (null)
number of ops:  12
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > JMP                                                      ->2
    7     1  E > > CATCH                                       last         'Exception'
   10     2    > > FAST_CALL                                                ->4
          3    > > JMP                                                      ->11
   11     4    >   ISSET_ISEMPTY_CV                                         !0
          5      > JMPZ                                                     ~2, ->10
          6    >   INIT_METHOD_CALL                                         !0, 'getMessage'
          7        DO_FCALL                                      0  $3      
          8        CONCAT                                           ~4      'exception+was+thrown+with+message%3A+', $3
          9        ECHO                                                     ~4
         10    > > FAST_RET                                                 
   12    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.68 ms | 1393 KiB | 13 Q