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; }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0070.01516.50
8.3.50.0070.01016.48
8.3.40.0140.00719.02
8.3.30.0180.00418.53
8.3.20.0000.00721.90
8.3.10.0040.00421.97
8.3.00.0000.00819.44
8.2.180.0030.01216.63
8.2.170.0190.00022.96
8.2.160.0120.00320.47
8.2.150.0030.00624.18
8.2.140.0000.00724.66
8.2.130.0080.00020.35
8.2.120.0070.00026.35
8.2.110.0030.00722.25
8.2.100.0110.00018.03
8.2.90.0060.00317.88
8.2.80.0060.00320.40
8.2.70.0090.00017.93
8.2.60.0080.00018.16
8.2.50.0040.00418.10
8.2.40.0000.00820.65
8.2.30.0050.00219.43
8.2.20.0000.00718.20
8.2.10.0050.00318.06
8.2.00.0070.00018.11
8.1.280.0070.00725.92
8.1.270.0050.00219.00
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0110.01120.82
8.1.230.0060.00619.36
8.1.220.0060.00317.77
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0080.00020.20
8.1.160.0040.00418.91
8.1.150.0040.00420.25
8.1.140.0000.00719.60
8.1.130.0050.00218.83
8.1.120.0020.00517.39
8.1.110.0030.00517.39
8.1.100.0080.00017.49
8.1.90.0000.00717.48
8.1.80.0000.00817.37
8.1.70.0030.00317.51
8.1.60.0070.00017.50
8.1.50.0030.00517.50
8.1.40.0000.00717.38
8.1.30.0040.00417.64
8.1.20.0040.00417.66
8.1.10.0040.00417.48
8.1.00.0040.00417.42
8.0.300.0040.00718.77
8.0.290.0000.00816.75
8.0.280.0000.00718.51
8.0.270.0000.00817.16
8.0.260.0090.00018.84
8.0.250.0030.00317.04
8.0.240.0000.00817.07
8.0.230.0000.00717.05
8.0.220.0040.00416.93
8.0.210.0000.00716.91
8.0.200.0040.00417.03
8.0.190.0000.00717.07
8.0.180.0050.00317.01
8.0.170.0030.00416.97
8.0.160.0070.00016.99
8.0.150.0050.00216.93
8.0.140.0000.00816.98
8.0.130.0000.00613.37
8.0.120.0040.00416.97
8.0.110.0060.00316.87
8.0.100.0040.00417.01
8.0.90.0030.00616.86
8.0.80.0090.00617.03
8.0.70.0040.00416.92
8.0.60.0040.00416.83
8.0.50.0070.00016.97
8.0.30.0120.00717.27
8.0.20.0110.00717.40
8.0.10.0040.00417.10
8.0.00.0110.01116.70
7.4.330.0000.00515.55
7.4.320.0030.00316.44
7.4.300.0070.00016.65
7.4.290.0040.00416.52
7.4.280.0050.00316.57
7.4.270.0000.00716.63
7.4.260.0040.00416.61
7.4.250.0040.00416.51
7.4.240.0000.00716.52
7.4.230.0000.00716.62
7.4.220.0140.01116.55
7.4.210.0070.01316.73
7.4.200.0030.00316.70
7.4.160.0080.01016.41
7.4.150.0090.00917.40
7.4.140.0150.00717.86
7.4.130.0110.00916.59
7.4.120.0100.01516.51
7.4.110.0090.00916.55
7.4.100.0130.00416.40
7.4.90.0060.01216.68
7.4.80.0100.00619.39
7.4.70.0110.00616.46
7.4.60.0120.00316.62
7.4.50.0000.01316.44
7.4.40.0110.00516.50
7.4.30.0080.00816.55
7.4.10.0030.01616.54
7.4.00.0020.01415.89
7.3.330.0030.00313.08
7.3.320.0000.00513.18
7.3.310.0040.00416.34
7.3.300.0030.00316.37
7.3.290.0070.01016.34
7.3.280.0100.00816.30
7.3.270.0160.01017.40
7.3.260.0080.01316.61
7.3.250.0130.00716.27
7.3.240.0120.00716.45
7.3.230.0070.01016.41
7.3.210.0030.01316.43
7.3.200.0100.00716.30
7.3.190.0080.00816.46
7.3.180.0050.01116.59
7.3.170.0090.00916.55
7.3.160.0090.00716.36
7.3.130.0040.01516.39
7.3.120.0070.00715.73
7.3.110.0120.00515.67
7.3.100.0110.00315.69
7.3.90.0050.00815.54
7.3.80.0070.00715.58
7.3.70.0080.00815.59
7.3.60.0050.01015.49
7.3.50.0030.01015.49
7.3.40.0030.01115.43
7.3.30.0070.00515.63
7.3.20.0060.00817.36
7.3.10.0070.00817.26
7.3.00.0050.00717.38
7.2.330.0110.00816.59
7.2.320.0030.01416.61
7.2.310.0130.00316.21
7.2.300.0150.00416.61
7.2.290.0100.00616.42
7.2.260.0100.00616.34
7.2.250.0070.01416.59
7.2.240.0130.00515.71
7.2.230.0090.00715.64
7.2.220.0110.00515.75
7.2.210.0070.00715.86
7.2.200.0030.01415.95
7.2.190.0070.00715.77
7.2.180.0060.00915.63
7.2.170.0030.01015.56
7.2.160.0100.00415.65
7.2.150.0080.00517.55
7.2.140.0090.00717.55
7.2.130.0030.01017.74
7.2.120.0090.00617.59
7.2.110.0030.00817.55
7.2.100.0070.00417.59
7.2.90.0080.00217.59
7.2.80.0060.00717.52
7.2.70.0070.00717.51
7.2.60.0070.00717.43
7.2.50.0060.01017.57
7.2.40.0090.00917.49
7.2.30.0100.00317.59
7.2.20.0090.00517.66
7.2.10.0060.00917.53
7.2.00.0070.00917.59
7.1.330.0050.00816.64
7.1.320.0050.00816.55
7.1.310.0030.01216.55
7.1.300.0060.00416.63
7.1.290.0030.01316.60
7.1.280.0070.01016.53
7.1.270.0050.00816.53
7.1.260.0060.00816.65
7.1.250.0050.01116.63
7.1.240.0110.00717.37
7.1.230.0030.00617.47
7.1.220.0080.00417.06
7.1.210.0060.00917.22
7.1.200.0070.00516.59
7.1.190.0030.01317.25
7.1.180.0030.00917.41
7.1.170.0000.01417.22
7.1.160.0030.00617.21
7.1.150.0090.00617.26
7.1.140.0050.00517.12
7.1.130.0110.00417.38
7.1.120.0060.00617.22
7.1.110.0030.00917.29
7.1.100.0030.01217.29
7.1.90.0030.01317.30
7.1.80.0000.01117.22
7.1.70.0050.00817.01
7.1.60.0350.01425.16
7.1.50.0390.01025.14
7.1.40.0520.00724.96
7.1.30.0470.01625.02
7.1.20.0320.01325.07
7.1.10.0230.00816.13
7.1.00.0330.00816.10
7.0.330.0030.01317.01
7.0.320.0030.01016.88
7.0.310.0060.00317.13
7.0.300.0000.01116.86
7.0.290.0030.00616.82
7.0.280.0070.00716.93
7.0.270.0070.01016.66
7.0.260.0070.00716.88
7.0.250.0080.00317.02
7.0.240.0070.01016.86
7.0.230.0100.00316.98
7.0.220.0040.01116.84
7.0.210.0060.00317.10
7.0.200.0610.00816.01
7.0.190.0330.01115.86
7.0.180.0280.01315.73
7.0.170.0350.00915.47
7.0.160.0430.01015.63
7.0.150.0270.00915.69
7.0.140.0300.01115.80
7.0.130.0270.00815.68
7.0.120.0230.01115.77
7.0.110.0360.00815.63
7.0.100.0270.00615.68
7.0.90.0290.00515.64
7.0.80.0230.00815.71
7.0.70.0250.00715.61
7.0.60.0250.01115.52
7.0.50.0430.00715.63
7.0.40.0270.00914.76
7.0.30.0280.00814.62
7.0.20.0220.00814.71
7.0.10.0300.01014.74
7.0.00.0230.01114.65
5.6.400.0070.01015.83
5.6.390.0080.00515.68
5.6.380.0040.01215.72
5.6.370.0050.00516.00
5.6.360.0130.00315.99
5.6.350.0070.01115.59
5.6.340.0080.00615.88
5.6.330.0110.00715.89
5.6.320.0030.01315.75
5.6.310.0070.00715.86
5.6.300.0120.00315.70
5.6.290.0060.01216.02
5.6.280.0000.01815.69
5.6.270.0060.00616.00
5.6.260.0100.00316.14
5.6.250.0110.00415.97
5.6.240.0000.01315.93
5.6.230.0060.00815.80
5.6.220.0000.01815.88
5.6.210.0120.00415.73
5.6.200.0030.01015.97
5.6.190.0090.00616.05
5.6.180.0110.00415.91
5.6.170.0070.01015.89
5.6.160.0130.00315.81
5.6.150.0100.00716.09
5.6.140.0000.01315.93
5.6.130.0060.01015.98
5.6.120.0080.00315.78
5.6.110.0060.00915.84
5.6.100.0090.00315.86
5.6.90.0030.01515.86
5.6.80.0030.01315.83
5.6.70.0030.01415.82
5.6.60.0080.00815.70
5.6.50.0090.00615.64
5.6.40.0000.01115.93
5.6.30.0090.00315.67
5.6.20.0030.01315.85
5.6.10.0100.00615.76
5.6.00.0030.01315.92

preferences:
64.48 ms | 400 KiB | 5 Q