3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { // throw new \Exception("test"); } catch(\Exception $e){ } finally { if($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 = 5, Position 2 = 9
Branch analysis from position: 5
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 9
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
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/jqU0E
function name:  (null)
number of ops:  11
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                                                      ->10
   11     4    > > JMPZ                                                     !0, ->9
          5    >   INIT_METHOD_CALL                                         !0, 'getMessage'
          6        DO_FCALL                                      0  $2      
          7        CONCAT                                           ~3      'exception+was+thrown+with+message%3A+', $2
          8        ECHO                                                     ~3
          9    > > FAST_RET                                                 
   12    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.44 ms | 1393 KiB | 13 Q