3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { // throw new \Exception("test"); } catch(\Exception $e){ throw new Exception('plop'); } 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 = 6
Branch analysis from position: 6
2 jumps found. (Code = 162) Position 1 = 8, Position 2 = 7
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
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
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/uKg4k
function name:  (null)
number of ops:  21
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > JMP                                                      ->6
    7     1  E > > CATCH                                       last         'Exception'
    8     2    >   NEW                                              $2      'Exception'
          3        SEND_VAL_EX                                              'plop'
          4        DO_FCALL                                      0          
          5      > THROW                                         0          $2
   10     6    > > FAST_CALL                                                ->8
          7    > > JMP                                                      ->20
   11     8    >   ISSET_ISEMPTY_CV                                         !0
          9      > JMPZ                                                     ~4, ->15
         10    >   INIT_METHOD_CALL                                         !0, 'getMessage'
         11        DO_FCALL                                      0  $5      
         12        CONCAT                                           ~6      'exception+was+thrown+with+message%3A+', $5
         13        ECHO                                                     ~6
         14      > JMP                                                      ->19
   12    15    >   NEW                                              $7      'DomainException'
         16        SEND_VAL_EX                                              'no+exception+thrown%21'
         17        DO_FCALL                                      0          
         18      > THROW                                         0          $7
         19    > > FAST_RET                                                 
   13    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.2 ms | 1385 KiB | 13 Q