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; }
Output for git.master, git.master_jit
Warning: Undefined variable $accountDetails in /in/FEcB4 on line 2 Warning: Trying to access array offset on value of type null in /in/FEcB4 on line 2 Warning: Trying to access array offset on value of type null in /in/FEcB4 on line 2 Warning: Trying to access array offset on value of type null in /in/FEcB4 on line 2 Warning: Undefined variable $accountDetails in /in/FEcB4 on line 14 Warning: Trying to access array offset on value of type null in /in/FEcB4 on line 14 Warning: Trying to access array offset on value of type null in /in/FEcB4 on line 14 Warning: Trying to access array offset on value of type null in /in/FEcB4 on line 14 Warning: Trying to access array offset on value of type null in /in/FEcB4 on line 14
Output for rfc.property-hooks
Warning: Undefined variable $accountDetails in /in/FEcB4 on line 2 Warning: Trying to access array offset on null in /in/FEcB4 on line 2 Warning: Trying to access array offset on null in /in/FEcB4 on line 2 Warning: Trying to access array offset on null in /in/FEcB4 on line 2 Warning: Undefined variable $accountDetails in /in/FEcB4 on line 14 Warning: Trying to access array offset on null in /in/FEcB4 on line 14 Warning: Trying to access array offset on null in /in/FEcB4 on line 14 Warning: Trying to access array offset on null in /in/FEcB4 on line 14 Warning: Trying to access array offset on null in /in/FEcB4 on line 14

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
80.76 ms | 402 KiB | 8 Q