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(); else throw new DomainException('no exception thrown!'); }
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 = 11
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
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/c9mnh
function name:  (null)
number of ops:  17
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                                                      ->16
   11     4    >   ISSET_ISEMPTY_CV                                         !0
          5      > JMPZ                                                     ~2, ->11
          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      > JMP                                                      ->15
   12    11    >   NEW                                              $5      'DomainException'
         12        SEND_VAL_EX                                              'no+exception+thrown%21'
         13        DO_FCALL                                      0          
         14      > THROW                                         0          $5
         15    > > FAST_RET                                                 
   13    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.01 ms | 1394 KiB | 13 Q