3v4l.org

run code in 300+ PHP versions simultaneously
<?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; }
Output for git.master, git.master_jit
Warning: Undefined array key "Response" in /in/gnIWv on line 3 Warning: Trying to access array offset on value of type null in /in/gnIWv on line 3 Warning: Trying to access array offset on value of type null in /in/gnIWv on line 3 Warning: Undefined array key "Response" in /in/gnIWv on line 15 Warning: Trying to access array offset on value of type null in /in/gnIWv on line 15 Warning: Trying to access array offset on value of type null in /in/gnIWv on line 15 Warning: Trying to access array offset on value of type null in /in/gnIWv on line 15
Output for rfc.property-hooks
Warning: Undefined array key "Response" in /in/gnIWv on line 3 Warning: Trying to access array offset on null in /in/gnIWv on line 3 Warning: Trying to access array offset on null in /in/gnIWv on line 3 Warning: Undefined array key "Response" in /in/gnIWv on line 15 Warning: Trying to access array offset on null in /in/gnIWv on line 15 Warning: Trying to access array offset on null in /in/gnIWv on line 15 Warning: Trying to access array offset on null in /in/gnIWv on line 15

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:
59.11 ms | 402 KiB | 8 Q