3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* filename: amazon_config.php created: 7/17/2002, © 2002 php9.com Calin Uioreanu descripton: configuration variables for Amazon Parser */ ////////////////////// // Modifiable section // if you have a valid Amazon associate Id, place it here to be rewarded for the traffic you generate to Amazon define('ASSOCIATE_ID', 'php9comweblot-20'); // Amazon specific constants define('IMAGEURLMEDIUM_HEIGHT', 140); define('IMAGEURLMEDIUM_WIDTH', 107); ////////////////////// // Read only section // Do not change this constant define('DEVELOPER_TOKEN','D37FFQXOC3MRYZ'); // XSL live transform Amazon data to HTML define('PRODUCT_DETAIL_URL','http://xml.amazon.com/onca/xml3?t='.ASSOCIATE_ID.'&dev-t='.DEVELOPER_TOKEN.'&type=heavy&f=http://www.php9.com/php9-data-to-htmls.xsl&AsinSearch='); if (!$sCurrentMode = $_GET['Mode']) { $sCurrentMode = 'books'; } $arModes = array ( 'baby' => 'baby (Baby)', 'books' => 'books (Books)', 'classical' => 'classical (Classical Music)', 'dvd' => 'dvd (DVD)', 'electronics' => 'electronics (Electronics)', 'garden' => 'garden (Outdoor Living)', 'kitchen' => 'kitchen (Kitchen & Housewares)', 'magazines' => 'magazines (Magazines)', 'music' => 'music (Popular Music)', 'pc-hardware' => 'pc-hardware (Computers)', 'photo' => 'photo (Camera & Photo)', 'software' => 'software (Software)', 'toys' => 'toys (Toys & Games)', 'universal' => 'universal (Tools & Hardware)', 'vhs' => 'vhs (Video)', 'videogames' => 'videogames (Computer & Video Games)' ); // sort by salesRank by default if (!$sCurrentModeSortType = $_GET['SortBy']) { $sCurrentModeSortType = '+salesrank'; } // Sort Types $arModeSortType = array ( 'baby' => array( '+pmrank' => 'Featured Items', '+salesrank' => 'Bestselling', '+titlerank' => 'Alphabetical (A-Z)', ), 'books' => array( '+pmrank' => 'Featured Items', '+salesrank' => 'Bestselling', '+reviewrank' => 'Average Customer Review', '+pricerank' => 'Price (Low to High)', '+inverse-pricerank' => 'Price (High to Low)', '+daterank' => 'Publication Date', '+titlerank' => 'Alphabetical (A-Z)', '-titlerank' => 'Alphabetical (Z-A)', ), 'classical' => array( '+pmrank' => 'Featured Items', '+salesrank' => 'Bestselling', '+titlerank' => 'Alphabetical (A-Z)', ), 'dvd' => array( '+salesrank' => 'Bestselling', '+titlerank' => 'Alphabetical', ), 'electronics' => array( '+pmrank' => 'Featured Items', '+salesrank' => 'Bestselling', '+titlerank' => 'Alphabetical', '+reviewrank' => 'Review', ), 'garden' => array( '+psrank' => 'Featured Items', '+salesrank' => 'Bestselling', '+titlerank' => 'Alphabetical (A-Z)', '-titlerank' => 'Alphabetical (Z-A)', '+manufactrank' => 'Manufacturer (A-Z)', '-manufactrank' => 'Manufacturer (Z-A)', '+price' => 'Price (Low to High)', '-price' => 'Price (High to Low)', ), 'kitchen' => array( '+psrank' => 'Featured Items', '+salesrank' => 'Bestselling', '+titlerank' => 'Alphabetical (A-Z)', '-titlerank' => 'Alphabetical (Z-A)', '+manufactrank' => 'Manufacturer (A-Z)', '-manufactrank' => 'Manufacturer (Z-A)', '+price' => 'Price (Low to High)', '-price' => 'Price (High to Low)', ), 'magazines' => array( '+pmrank' => 'Featured Items', '+salesrank' => 'Bestselling', '+titlerank' => 'Alphabetical (A-Z)', ), 'music' => array( '+psrank' => 'Featured Items', '+salesrank' => 'Bestselling', '+artistrank' => 'Artist Name', '+orig-rel-date' => 'Original Release Date', '+titlerank' => 'Alphabetical', ), 'pc-hardware' => array( '+psrank' => 'Featured Items', '+salesrank' => 'Bestselling', '+titlerank' => 'Alphabetical (A-Z)', '-titlerank' => 'Alphabetical (Z-A)', ), 'photo' => array( '+pmrank' => 'Featured Items', '+salesrank' => 'Bestselling', '+titlerank' => 'Alphabetical (A-Z)', '-titlerank' => 'Alphabetical (Z-A)', ), 'software' => array( '+pmrank' => 'Featured Items', '+salesrank' => 'Bestselling', '+titlerank' => 'Alphabetical', '+price' => 'Price (Low to High)', '+price' => 'Price (High to Low)', ), 'toys' => array( '+pmrank' => 'Featured Items', '+salesrank' => 'Bestselling', '+titlerank' => 'Alphabetical (A-Z)', ), 'universal' => array( '+psrank' => 'Featured Items', '+salesrank' => 'Bestselling', '+titlerank' => 'Alphabetical (A-Z)', '-titlerank' => 'Alphabetical (Z-A)', '+manufactrank' => 'Manufacturer (A-Z)', '-manufactrank' => 'Manufacturer (Z-A)', '+price' => 'Price (Low to High)', '-price' => 'Price (High to Low)', ), 'vhs' => array( '+psrank' => 'Featured Items', '+salesrank' => 'Bestselling', '+titlerank' => 'Alphabetical', ), 'videogames' => array( '+pmrank' => 'Featured Items', '+salesrank' => 'Bestselling', '+titlerank' => 'Alphabetical', '+price' => 'Price (Low to High)', '-price' => 'Price (High to Low)', ), ); $sUrl = 'http://xml.amazon.com/onca/xml3'; $sUrl .= '?t='. ASSOCIATE_ID; $sUrl .= '&dev-t='. DEVELOPER_TOKEN; $sUrl .= '&mode=' . $sCurrentMode; $sUrl .= '&type=lite&page=1'; $sUrl .= '&f=xml'; $sUrl .= '&KeywordSearch='; // search for PHP Books by default if (@$_GET['Search']) { error_log ("\n " . $_GET['Search'] ." from $sCurrentMode at ". date("F j, Y, g:i a"), 3, "amazon_search.log"); $sUrl .= urlencode ($_GET['Search']); } else { $sUrl .= 'php'; } $sUrl .= '&sort='. $sCurrentModeSortType; ?> <!-- Script generated with the Amazon PHP API from php9.com Try it here: http://www.php9.com/amazon.php //-->

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.70.0110.00716.50
8.3.60.0120.00318.68
8.3.50.0140.00522.11
8.3.40.0090.00619.02
8.3.30.0090.00618.83
8.3.20.0090.00020.34
8.3.10.0080.00020.65
8.3.00.0000.00821.89
8.2.190.0120.00618.54
8.2.180.0090.00617.13
8.2.170.0150.00622.96
8.2.160.0100.00322.01
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00421.06
8.2.120.0080.00026.35
8.2.110.0030.00621.18
8.2.100.0000.01117.97
8.2.90.0050.00318.03
8.2.80.0050.00318.22
8.2.70.0000.00817.63
8.2.60.0000.00817.75
8.2.50.0000.00917.63
8.2.40.0040.00420.51
8.2.30.0000.00819.41
8.2.20.0050.00217.78
8.2.10.0000.00718.15
8.2.00.0030.00518.10
8.1.280.0000.01425.92
8.1.270.0090.00022.14
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0000.00822.50
8.1.230.0080.00320.97
8.1.220.0040.00417.91
8.1.210.0040.00818.77
8.1.200.0000.00817.23
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0030.00618.58
8.1.160.0050.00220.74
8.1.150.0040.00418.93
8.1.140.0000.00819.63
8.1.130.0000.00717.81
8.1.120.0040.00417.40
8.1.110.0000.00817.55
8.1.100.0000.00817.50
8.1.90.0040.00417.41
8.1.80.0040.00417.39
8.1.70.0040.00417.40
8.1.60.0060.00317.64
8.1.50.0040.00417.57
8.1.40.0000.00817.46
8.1.30.0000.00917.68
8.1.20.0050.00217.55
8.1.10.0000.00817.67
8.1.00.0000.00817.49
8.0.300.0000.00820.03
8.0.290.0040.00417.00
8.0.280.0000.00818.60
8.0.270.0000.00717.20
8.0.260.0040.00417.32
8.0.250.0000.00716.96
8.0.240.0050.00316.98
8.0.230.0000.00717.04
8.0.220.0020.00516.95
8.0.210.0040.00416.95
8.0.200.0070.00017.05
8.0.190.0040.00416.97
8.0.180.0040.00416.91
8.0.170.0000.00816.86
8.0.160.0040.00417.00
8.0.150.0040.00417.03
8.0.140.0040.00416.93
8.0.130.0000.00613.42
8.0.120.0040.00416.88
8.0.110.0000.00716.94
8.0.100.0000.00716.96
8.0.90.0040.00416.90
8.0.80.0040.01217.05
8.0.70.0040.00416.96
8.0.60.0080.00017.00
8.0.50.0040.00416.80
8.0.30.0170.00817.11
8.0.20.0150.00917.42
8.0.10.0000.00716.92
8.0.00.0110.00816.90
7.4.330.0060.00016.67
7.4.320.0040.00416.64
7.4.300.0030.00316.58
7.4.290.0070.00016.64
7.4.280.0030.00616.61
7.4.270.0070.00016.68
7.4.260.0050.00216.53
7.4.250.0040.00416.57
7.4.240.0080.00016.56
7.4.230.0000.00716.75
7.4.220.0100.02016.63
7.4.210.0090.00516.57
7.4.200.0000.00716.46
7.4.160.0100.00716.63
7.4.150.0140.00317.40
7.4.140.0080.01017.86
7.4.130.0140.00516.59
7.4.120.0110.00616.57
7.4.110.0150.00316.65
7.4.100.0120.00616.45
7.4.90.0140.00316.61
7.4.80.0130.00919.39
7.4.70.0060.01116.59
7.4.60.0110.00716.56
7.4.50.0000.01116.41
7.4.40.0110.00716.72
7.4.30.0060.01516.46
7.4.00.0080.00814.97
7.3.330.0000.00513.26
7.3.320.0000.00513.18
7.3.310.0030.00616.27
7.3.300.0030.00316.46
7.3.290.0030.00316.40
7.3.280.0070.01016.42
7.3.270.0090.00917.40
7.3.260.0070.01016.71
7.3.250.0110.00716.49
7.3.240.0050.01516.58
7.3.230.0140.00316.57
7.3.210.0140.00316.59
7.3.200.0090.00916.57
7.3.190.0100.00616.61
7.3.180.0070.01016.43
7.3.170.0100.01016.53
7.3.160.0080.00816.45
7.3.120.0030.01614.84
7.3.110.0060.01314.93
7.3.100.0060.00915.01
7.3.90.0090.00915.06
7.3.80.0030.01015.02
7.3.70.0030.01514.88
7.3.60.0070.00714.80
7.3.50.0000.01515.07
7.3.40.0060.01314.80
7.3.30.0060.00914.73
7.3.20.0000.01316.77
7.3.10.0000.01516.71
7.3.00.0030.01016.82
7.2.330.0160.00316.71
7.2.320.0040.01516.86
7.2.310.0030.01316.54
7.2.300.0060.01216.79
7.2.290.0080.00916.75
7.2.250.0070.01415.28
7.2.240.0130.00715.28
7.2.230.0030.00615.00
7.2.220.0060.00814.95
7.2.210.0140.00315.18
7.2.200.0070.01115.26
7.2.190.0080.00415.02
7.2.180.0090.00315.07
7.2.170.0040.01415.09
7.2.00.0100.00319.50
7.1.330.0080.00415.92
7.1.320.0030.01415.71
7.1.310.0040.01116.04
7.1.300.0080.00415.79
7.1.290.0090.00615.48
7.1.280.0070.01015.81
7.1.270.0090.00615.74
7.1.260.0080.00415.63
7.1.100.0000.01218.11
7.1.70.0000.01017.20
7.1.60.0120.01219.19
7.1.50.0130.00716.58
7.1.00.0070.07322.28
7.0.200.0100.00715.10
7.0.100.0170.03319.94
7.0.90.0230.04320.08
7.0.80.0070.04019.94
7.0.70.0230.03720.09
7.0.60.0030.03719.93
7.0.50.0030.04320.40
7.0.40.0170.07320.14
7.0.30.0270.06720.07
7.0.20.0100.04720.18
7.0.10.0170.07320.06
7.0.00.0100.05320.02
5.6.280.0070.06020.89
5.6.250.0000.04720.62
5.6.240.0030.04720.63
5.6.230.0100.03720.64
5.6.220.0030.05020.57
5.6.210.0030.04020.48
5.6.200.0070.04020.98
5.6.190.0070.08721.07
5.6.180.0030.09321.14
5.6.170.0170.07721.08
5.6.160.0130.08321.06
5.6.150.0070.09021.02
5.6.140.0070.04321.08
5.6.130.0070.08021.11
5.6.120.0070.05320.96
5.6.110.0030.08021.19
5.6.100.0100.06020.89
5.6.90.0170.07321.02
5.6.80.0030.07720.42
5.6.70.0070.07720.42
5.6.60.0100.07720.51
5.6.50.0070.07320.54
5.6.40.0070.05320.52
5.6.30.0100.04320.49
5.6.20.0070.04320.51
5.6.10.0030.07020.37
5.6.00.0100.05020.40
5.5.380.0000.04320.53
5.5.370.0100.04020.41
5.5.360.0130.03020.46
5.5.350.0100.03320.39
5.5.340.0130.07720.82
5.5.330.0030.05320.94
5.5.320.0030.07320.68
5.5.310.0070.08720.91
5.5.300.0070.04020.87
5.5.290.0200.06020.94
5.5.280.0070.08020.77
5.5.270.0070.08320.91
5.5.260.0130.08720.82
5.5.250.0100.07720.75
5.5.240.0030.07320.14
5.5.230.0030.08720.18
5.5.220.0100.04020.19
5.5.210.0130.05320.26
5.5.200.0030.06320.15
5.5.190.0030.08020.27
5.5.180.0030.05720.25
5.5.160.0000.06320.31
5.5.150.0030.08019.98
5.5.140.0100.07720.17
5.5.130.0070.08020.13
5.5.120.0100.06720.01
5.5.110.0170.05320.23
5.5.100.0030.08320.11
5.5.90.0000.05720.09
5.5.80.0100.04020.12
5.5.70.0000.08320.02
5.5.60.0100.05320.08
5.5.50.0000.05320.02
5.5.40.0100.04720.11
5.5.30.0070.04320.02
5.5.20.0130.06020.08
5.5.10.0030.07320.09
5.5.00.0100.07020.15

preferences:
46.23 ms | 401 KiB | 5 Q