3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { echo "hmm"; switch (1) { case 0:{ try { } catch (Exception $e) { } break; } case 1:{ try { throw new Exception('aaa'); } catch (Exception $e) { echo 'caught by 1'; exit; } break; } } } catch (Exception $e) { echo 'caught by 2'.$e->getMessage(); exit; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Found catch point at position: 7
Branch analysis from position: 7
2 jumps found. (Code = 107) Position 1 = 8, Position 2 = -2
Branch analysis from position: 8
Found catch point at position: 14
Branch analysis from position: 14
2 jumps found. (Code = 107) Position 1 = 15, Position 2 = -2
Branch analysis from position: 15
1 jumps found. (Code = 79) Position 1 = -2
Found catch point at position: 19
Branch analysis from position: 19
2 jumps found. (Code = 107) Position 1 = 20, Position 2 = -2
Branch analysis from position: 20
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/XWH0o
function name:  (null)
number of ops:  26
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     'hmm'
   10     1        IS_EQUAL                                                 1, 0
          2      > JMPNZ                                                    ~1, ->6
   21     3    >   IS_EQUAL                                                 1, 1
          4      > JMPNZ                                                    ~1, ->9
          5    > > JMP                                                      ->18
   12     6    > > JMP                                                      ->8
   14     7  E > > CATCH                                       last         'Exception'
   18     8    > > JMP                                                      ->18
   23     9    >   NEW                                              $2      'Exception'
         10        SEND_VAL_EX                                              'aaa'
         11        DO_FCALL                                      0          
         12      > THROW                                         0          $2
         13*       JMP                                                      ->17
   25    14  E > > CATCH                                       last         'Exception'
   26    15    >   ECHO                                                     'caught+by+1'
   27    16      > EXIT                                                     
   30    17*       JMP                                                      ->18
         18    > > JMP                                                      ->25
   34    19  E > > CATCH                                       last         'Exception'
   36    20    >   INIT_METHOD_CALL                                         !0, 'getMessage'
         21        DO_FCALL                                      0  $4      
         22        CONCAT                                           ~5      'caught+by+2', $4
         23        ECHO                                                     ~5
   37    24      > EXIT                                                     
   38    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.58 ms | 1395 KiB | 13 Q