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

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.0090.00916.50
8.3.50.0140.00316.58
8.3.40.0110.01118.84
8.3.30.0130.00918.80
8.3.20.0050.00321.95
8.3.10.0040.00421.90
8.3.00.0030.00519.43
8.2.180.0130.00718.29
8.2.170.0140.00722.96
8.2.160.0090.00620.52
8.2.150.0080.00424.18
8.2.140.0060.00324.66
8.2.130.0080.00020.51
8.2.120.0070.00026.35
8.2.110.0070.00322.25
8.2.100.0110.00017.91
8.2.90.0040.00817.75
8.2.80.0060.00317.97
8.2.70.0040.00418.05
8.2.60.0060.00318.06
8.2.50.0040.00418.10
8.2.40.0040.00420.45
8.2.30.0060.00319.23
8.2.20.0000.00818.25
8.2.10.0000.00718.15
8.2.00.0000.00718.14
8.1.280.0170.00725.92
8.1.270.0040.00418.97
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.64
8.1.230.0040.00817.76
8.1.220.0060.00317.76
8.1.210.0050.00318.77
8.1.200.0090.00017.35
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0030.00620.08
8.1.160.0070.00018.83
8.1.150.0040.00420.29
8.1.140.0030.00519.48
8.1.130.0040.00418.96
8.1.120.0040.00317.50
8.1.110.0040.00417.47
8.1.100.0000.00817.37
8.1.90.0050.00317.52
8.1.80.0000.00717.57
8.1.70.0040.00417.39
8.1.60.0000.00717.59
8.1.50.0040.00417.56
8.1.40.0000.00817.46
8.1.30.0030.00517.55
8.1.20.0030.00517.74
8.1.10.0000.00817.63
8.1.00.0040.00417.55
8.0.300.0040.00418.77
8.0.290.0000.00916.75
8.0.280.0000.00718.46
8.0.270.0000.00717.28
8.0.260.0030.00618.90
8.0.250.0030.00316.95
8.0.240.0080.00017.00
8.0.230.0070.00016.99
8.0.220.0030.00316.98
8.0.210.0030.00316.89
8.0.200.0050.00317.04
8.0.190.0080.00017.06
8.0.180.0040.00416.93
8.0.170.0030.00317.07
8.0.160.0000.00716.96
8.0.150.0040.00416.91
8.0.140.0070.00316.91
8.0.130.0060.00013.36
8.0.120.0030.00516.92
8.0.110.0030.00516.86
8.0.100.0000.00817.02
8.0.90.0040.00417.01
8.0.80.0110.00716.95
8.0.70.0000.00717.08
8.0.60.0040.00416.87
8.0.50.0000.00716.78
8.0.30.0080.00816.97
8.0.20.0110.00917.40
8.0.10.0040.00417.04
8.0.00.0090.00916.66
7.4.330.0030.00315.55
7.4.320.0030.00316.43
7.4.300.0040.00416.52
7.4.290.0000.00716.51
7.4.280.0000.00716.62
7.4.270.0030.00316.61
7.4.260.0030.00716.64
7.4.250.0030.00416.48
7.4.240.0050.00316.45
7.4.230.0030.00316.63
7.4.220.0090.01616.47
7.4.210.0040.01516.63
7.4.200.0000.00716.72
7.4.160.0040.01316.37
7.4.150.0070.01117.40
7.4.140.0110.00717.86
7.4.130.0080.01116.50
7.4.120.0120.00816.53
7.4.110.0080.00816.41
7.4.100.0170.00016.70
7.4.90.0090.00816.42
7.4.80.0060.01019.39
7.4.70.0100.01016.79
7.4.60.0100.00616.30
7.4.50.0000.01316.43
7.4.40.0100.00616.52
7.4.30.0070.01016.55
7.4.00.0060.01115.14
7.3.330.0000.00613.22
7.3.320.0000.00513.26
7.3.310.0000.00716.37
7.3.300.0030.00316.35
7.3.290.0090.00516.35
7.3.280.0100.00716.30
7.3.270.0140.00917.40
7.3.260.0070.01316.39
7.3.250.0100.01016.44
7.3.240.0150.00516.49
7.3.230.0100.00716.23
7.3.210.0100.01316.34
7.3.200.0090.01216.39
7.3.190.0120.00916.36
7.3.180.0100.01316.64
7.3.170.0160.00316.26
7.3.160.0030.01316.41
7.3.120.0030.01414.75
7.3.110.0050.01314.96
7.3.100.0070.00814.93
7.3.90.0030.01014.66
7.3.80.0050.00914.98
7.3.70.0070.00714.92
7.3.60.0080.00614.87
7.3.50.0050.00714.71
7.3.40.0100.00214.59
7.3.30.0040.00814.72
7.3.20.0030.01016.43
7.3.10.0040.00916.52
7.3.00.0050.00716.73
7.2.330.0130.00316.45
7.2.320.0070.01016.70
7.2.310.0100.01316.32
7.2.300.0100.01316.62
7.2.290.0000.01716.52
7.2.250.0050.01215.02
7.2.240.0110.00815.01
7.2.230.0050.01014.80
7.2.220.0050.00614.89
7.2.210.0100.00615.11
7.2.200.0050.01015.05
7.2.190.0050.00815.03
7.2.180.0080.00614.88
7.2.170.0020.00914.95
7.2.60.0120.00316.76
7.2.00.0060.01019.07
7.1.330.0090.00515.82
7.1.320.0050.00715.64
7.1.310.0050.00915.83
7.1.300.0050.00815.72
7.1.290.0080.00515.89
7.1.280.0080.00515.71
7.1.270.0080.00315.56
7.1.260.0040.00815.81
7.1.200.0040.00815.41
7.1.100.0040.01118.21
7.1.70.0030.01216.89
7.1.60.1400.01033.28
7.1.50.0970.01333.05
7.1.40.0530.01732.58
7.1.30.0670.02032.84
7.1.20.0570.02032.64
7.1.10.0430.01014.65
7.1.00.0570.00314.91
7.0.200.0870.01314.88
7.0.190.1070.00314.68
7.0.180.0700.01314.41
7.0.170.0770.01314.38
7.0.160.0670.01014.27
7.0.150.0430.01014.36
7.0.140.0500.00714.36
7.0.130.0630.00714.79
7.0.120.0470.01014.58
7.0.110.0500.01014.38
7.0.100.0530.01714.62
7.0.90.0530.01014.50
7.0.80.0770.01314.57
7.0.70.0570.00714.42
7.0.60.0570.01014.10
7.0.50.0670.00714.41
7.0.40.0530.00714.68
7.0.30.0530.01314.64
7.0.20.0970.01314.75
7.0.10.1030.00714.61
7.0.00.0870.01314.30

preferences:
59.84 ms | 400 KiB | 5 Q