3v4l.org

run code in 300+ PHP versions simultaneously
<?php function mapAmazonData() { if ($this->checkAmazonData() === true) { try { // Stripping down the array and separating it into different variables $data = $this->amazonData['Message']['OrderReport']; $address = $data['FulfillmentData']['Address']; // Set the Customer's Name if (!empty ($address['Name'])) { $this->exportArray['CustomerName'] = $address['Name']; } else { throw new \Exception('Customer Name is empty'); } } catch (\Exception $e) { return 'Caught exception:' . $e->getMessage() . "\n"; } } }

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.0110.01118.00
8.3.50.0070.01017.83
8.3.40.0150.00018.38
8.3.30.0120.00318.55
8.3.20.0040.00420.16
8.3.10.0050.00321.95
8.3.00.0080.00021.62
8.2.180.0070.01118.23
8.2.170.0090.00922.96
8.2.160.0070.00722.21
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0100.00720.88
8.2.110.0070.00321.04
8.2.100.0080.00417.72
8.2.90.0040.00417.63
8.2.80.0000.01018.36
8.2.70.0050.00317.38
8.2.60.0040.00417.80
8.2.50.0080.00018.10
8.2.40.0000.00720.59
8.2.30.0030.00620.93
8.2.20.0000.00817.83
8.2.10.0000.00817.94
8.2.00.0030.00617.97
8.1.280.0110.00725.92
8.1.270.0060.00321.74
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0060.00323.97
8.1.230.0070.00418.93
8.1.220.0090.00017.74
8.1.210.0000.00818.77
8.1.200.0000.00817.10
8.1.190.0030.00517.23
8.1.180.0090.00018.10
8.1.170.0030.00618.55
8.1.160.0000.00818.71
8.1.150.0040.00420.15
8.1.140.0020.00517.48
8.1.130.0030.00318.88
8.1.120.0070.00017.42
8.1.110.0000.00817.33
8.1.100.0080.00017.23
8.1.90.0000.00717.39
8.1.80.0050.00217.36
8.1.70.0000.00817.40
8.1.60.0040.00417.41
8.1.50.0000.00817.31
8.1.40.0040.00417.38
8.1.30.0080.00017.39
8.1.20.0050.00317.47
8.1.10.0000.00717.38
8.1.00.0000.00917.23
8.0.300.0040.00418.77
8.0.290.0000.00716.58
8.0.280.0040.00418.20
8.0.270.0030.00317.02
8.0.260.0000.00618.24
8.0.250.0000.00716.80
8.0.240.0030.00516.89
8.0.230.0070.00016.88
8.0.220.0030.00316.79
8.0.210.0030.00316.68
8.0.200.0000.00616.82
8.0.190.0050.00316.88
8.0.180.0040.00416.69
8.0.170.0000.00716.69
8.0.160.0040.00416.80
8.0.150.0000.00716.62
8.0.140.0000.00816.64
8.0.130.0000.00513.11
8.0.120.0080.00016.75
8.0.110.0000.00816.60
8.0.100.0050.00216.83
8.0.90.0000.00816.84
8.0.80.0160.00316.70
8.0.70.0000.00716.77
8.0.60.0000.00716.81
8.0.50.0070.00016.76
8.0.30.0100.01016.88
8.0.20.0150.00717.40
8.0.10.0040.00416.92
8.0.00.0030.01316.55
7.4.330.0040.00015.55
7.4.320.0030.00316.49
7.4.300.0030.00316.45
7.4.290.0000.00716.51
7.4.280.0050.00316.39
7.4.270.0070.00016.32
7.4.260.0080.00316.38
7.4.250.0000.00716.35
7.4.240.0030.00316.29
7.4.230.0070.00016.59
7.4.220.0060.01216.35
7.4.210.0070.00716.43
7.4.200.0050.00216.29
7.4.160.0080.00816.25
7.4.150.0070.01117.40
7.4.140.0150.00517.86
7.4.130.0150.00416.44
7.4.120.0100.00916.38
7.4.110.0060.01016.33
7.4.100.0070.01816.43
7.4.90.0100.00716.30
7.4.80.0100.00719.39
7.4.70.0030.01616.55
7.4.60.0100.00616.25
7.4.50.0040.01216.49
7.4.40.0060.01016.28
7.4.30.0140.00316.27
7.4.00.0120.00314.80
7.3.330.0000.00613.04
7.3.320.0040.00413.02
7.3.310.0040.00416.28
7.3.300.0080.00016.05
7.3.290.0120.00716.21
7.3.280.0090.00816.15
7.3.270.0070.01117.40
7.3.260.0120.00916.47
7.3.250.0130.00716.34
7.3.240.0090.00916.27
7.3.230.0080.00816.45
7.3.210.0070.01016.13
7.3.200.0130.00316.23
7.3.190.0080.00816.18
7.3.180.0060.01116.17
7.3.170.0120.00616.07
7.3.160.0060.00916.47
7.3.120.0070.01114.91
7.3.110.0090.00914.82
7.3.100.0000.01514.70
7.3.90.0090.00614.66
7.3.80.0030.01315.01
7.3.70.0070.00714.54
7.3.60.0060.00614.67
7.3.50.0090.00014.44
7.3.40.0080.00814.75
7.3.30.0000.00914.51
7.3.20.0060.00316.63
7.3.10.0090.00616.48
7.3.00.0040.00416.19
7.2.330.0110.00716.43
7.2.320.0090.00916.40
7.2.310.0130.00316.51
7.2.300.0120.00416.36
7.2.290.0060.00916.29
7.2.240.0060.01014.60
7.2.230.0060.00915.08
7.2.220.0000.01614.93
7.2.210.0080.00814.82
7.2.200.0070.00314.79
7.2.190.0030.00614.76
7.2.180.0040.01114.79
7.2.170.0000.01014.55
7.2.160.0060.00314.55
7.2.150.0030.01216.73
7.2.140.0070.00716.61
7.2.130.0000.01116.74
7.2.120.0120.00416.75
7.2.110.0090.00616.53
7.2.100.0060.00916.45
7.2.90.0030.01516.98
7.2.80.0100.00316.46
7.2.70.0070.00716.53
7.2.60.0080.01016.60
7.2.50.0080.00616.71
7.2.40.0090.00616.48
7.2.30.0080.00616.71
7.2.20.0040.00716.79
7.2.10.0040.01116.37
7.2.00.0060.00816.53
7.1.330.0070.01115.53
7.1.320.0100.00015.71
7.1.310.0000.00915.67
7.1.300.0040.01215.53
7.1.290.0030.00915.68
7.1.280.0070.01015.66
7.1.270.0070.00415.66
7.1.260.0080.00015.66
7.1.250.0110.00315.45
7.1.200.0050.00515.70
7.1.100.0120.00617.87
7.1.90.0040.00817.92
7.1.80.0120.00017.80
7.1.70.0060.00617.02
7.1.60.0250.01235.03
7.1.50.0190.01334.59
7.1.40.0180.01834.23
7.1.30.0160.01934.51
7.1.20.0150.00934.48
7.1.10.0030.00916.30
7.1.00.0050.01016.43
7.0.240.0060.01217.66
7.0.230.0060.00617.47
7.0.220.0060.00617.44
7.0.210.0000.01116.24
7.0.200.0070.01016.60
7.0.190.0060.01116.46
7.0.180.0030.01416.20
7.0.170.0060.00616.00
7.0.160.0090.00315.97
7.0.150.0030.00915.99
7.0.140.0080.00816.28
7.0.130.0000.01216.53
7.0.120.0060.01116.30
7.0.110.0090.00516.11
7.0.100.0030.01116.20
7.0.90.0090.00916.05
7.0.80.0140.00316.13
7.0.70.0040.01016.19
7.0.60.0000.01215.90
7.0.50.0120.00616.29
7.0.40.0060.00616.32
7.0.30.0090.00416.27
7.0.20.0030.01016.53
7.0.10.0060.00616.44
7.0.00.0050.00816.17

preferences:
62.15 ms | 400 KiB | 5 Q