3v4l.org

run code in 300+ PHP versions simultaneously
<?php switch ($accountDetails['Response']['Account']['ProductName']) { case 'Orange Advantage': $interestRate = $accountDetails['Response']['RewardsInformation']['OrangeAdvantageRewards']['CurrentInterestRate']; break; case 'Fixed Rate': case 'Mortgage Simplifier': $interestRate = $accountDetails['Response']['RewardsInformation']['HomeLoanRewards']['CurrentInterestRate']; break; case 'Savings Accelerator': $interestRate = $accountDetails['Response']['InterestInformation']['SavingsAcceleratorInterestRate']['CurrentRate']; break; default: $interestRate = $accountDetails['Response']['InterestInformation']['SavingsMaximiserInterestRate']['CurrentRate']; break; }
Finding entry points
Branch analysis from position: 0
6 jumps found. (Code = 188) Position 1 = 13, Position 2 = 19, Position 3 = 19, Position 4 = 25, Position 5 = 31, Position 6 = 4
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
Branch analysis from position: 19
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 6, Position 2 = 13
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 19
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 19
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 25
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
Branch analysis from position: 25
Branch analysis from position: 19
Branch analysis from position: 19
Branch analysis from position: 13
filename:       /in/FEcB4
function name:  (null)
number of ops:  39
compiled vars:  !0 = $accountDetails, !1 = $interestRate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_DIM_R                                      ~2      !0, 'Response'
          1        FETCH_DIM_R                                      ~3      ~2, 'Account'
          2        FETCH_DIM_R                                      ~4      ~3, 'ProductName'
          3      > SWITCH_STRING                                            ~4, [ 'Orange+Advantage':->13, 'Fixed+Rate':->19, 'Mortgage+Simplifier':->19, 'Savings+Accelerator':->25, ], ->31
    3     4    >   CASE                                                     ~4, 'Orange+Advantage'
          5      > JMPNZ                                                    ~5, ->13
    6     6    >   CASE                                                     ~4, 'Fixed+Rate'
          7      > JMPNZ                                                    ~5, ->19
    7     8    >   CASE                                                     ~4, 'Mortgage+Simplifier'
          9      > JMPNZ                                                    ~5, ->19
   10    10    >   CASE                                                     ~4, 'Savings+Accelerator'
         11      > JMPNZ                                                    ~5, ->25
         12    > > JMP                                                      ->31
    4    13    >   FETCH_DIM_R                                      ~6      !0, 'Response'
         14        FETCH_DIM_R                                      ~7      ~6, 'RewardsInformation'
         15        FETCH_DIM_R                                      ~8      ~7, 'OrangeAdvantageRewards'
         16        FETCH_DIM_R                                      ~9      ~8, 'CurrentInterestRate'
         17        ASSIGN                                                   !1, ~9
    5    18      > JMP                                                      ->37
    8    19    >   FETCH_DIM_R                                      ~11     !0, 'Response'
         20        FETCH_DIM_R                                      ~12     ~11, 'RewardsInformation'
         21        FETCH_DIM_R                                      ~13     ~12, 'HomeLoanRewards'
         22        FETCH_DIM_R                                      ~14     ~13, 'CurrentInterestRate'
         23        ASSIGN                                                   !1, ~14
    9    24      > JMP                                                      ->37
   11    25    >   FETCH_DIM_R                                      ~16     !0, 'Response'
         26        FETCH_DIM_R                                      ~17     ~16, 'InterestInformation'
         27        FETCH_DIM_R                                      ~18     ~17, 'SavingsAcceleratorInterestRate'
         28        FETCH_DIM_R                                      ~19     ~18, 'CurrentRate'
         29        ASSIGN                                                   !1, ~19
   12    30      > JMP                                                      ->37
   14    31    >   FETCH_DIM_R                                      ~21     !0, 'Response'
         32        FETCH_DIM_R                                      ~22     ~21, 'InterestInformation'
         33        FETCH_DIM_R                                      ~23     ~22, 'SavingsMaximiserInterestRate'
         34        FETCH_DIM_R                                      ~24     ~23, 'CurrentRate'
         35        ASSIGN                                                   !1, ~24
   15    36      > JMP                                                      ->37
         37    >   FREE                                                     ~4
   16    38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.22 ms | 1399 KiB | 13 Q