3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { throw new \UnexpectedValueException(); } catch (\UnexpectedValueException $exception) { try { // throw new \UnexpectedValueException('user deleted'); throw new \Exception(); } catch (\UnexpectedValueException $exception) { throw new \UnexpectedValueException('user not found'); } } catch (\InvalidArgumentException $exception) { throw new \InvalidArgumentException('too many users found'); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 4
Branch analysis from position: 4
2 jumps found. (Code = 107) Position 1 = 5, Position 2 = 15
Branch analysis from position: 5
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 107) Position 1 = 16, Position 2 = -2
Branch analysis from position: 16
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 9
Branch analysis from position: 9
2 jumps found. (Code = 107) Position 1 = 10, Position 2 = -2
Branch analysis from position: 10
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 15
Branch analysis from position: 15
filename:       /in/0vNCo
function name:  (null)
number of ops:  21
compiled vars:  !0 = $exception
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'UnexpectedValueException'
          1        DO_FCALL                                      0          
          2      > THROW                                         0          $1
          3*       JMP                                                      ->20
    4     4  E > > CATCH                                                    'UnexpectedValueException', ->15
    7     5    >   NEW                                              $3      'Exception'
          6        DO_FCALL                                      0          
          7      > THROW                                         0          $3
          8*       JMP                                                      ->14
    8     9  E > > CATCH                                       last         'UnexpectedValueException'
    9    10    >   NEW                                              $5      'UnexpectedValueException'
         11        SEND_VAL_EX                                              'user+not+found'
         12        DO_FCALL                                      0          
         13      > THROW                                         0          $5
         14*       JMP                                                      ->20
   11    15  E > > CATCH                                       last         'InvalidArgumentException'
   12    16    >   NEW                                              $7      'InvalidArgumentException'
         17        SEND_VAL_EX                                              'too+many+users+found'
         18        DO_FCALL                                      0          
         19      > THROW                                         0          $7
   13    20*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.8 ms | 1394 KiB | 13 Q