3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $accountDetails = []; 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; }
based on FEcB4
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
Notice: Undefined index: Response in /in/gnIWv on line 3 Notice: Undefined index: Response in /in/gnIWv on line 15