3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('REST_URL', 'https://api.nizex.com/submitorder'); //Defines the url and function to be called. define('API_KEY', 'my-api-key'); //API Key from Lizzy $orders = array("Orders" => array(0 => array( "OrderNumber" => "825713", //Order number from the web store "Date" => "2013-02-12", //Date the order was created "Time" => "15:28", //Time the order was created "InvoiceNumber" => "", //Invoice number from the web store, "" if not applicable "Tax" => 1.99, //Tax amount (Format 0.00) "ShippingCost" => 5.99, //Shipping cost (Format 0.00) "Total" => 28.83, //Total cost of the order (Format 0.00) "PaymentMethod" => "Visa" //Payment method used by customer. "ShippingAddress" => array( "FirstName" => "Noel", //Ship to first name "LastName" => "Jacques", //Ship to last name "EmailAddress" => "njacques@nizex.com", //Ship to email address "CompanyName" => "Nizex Inc.", //Ship to company name "Phone" => "6783594184", //Ship to phone number "Address" => "1735 Pennsylvania Ave.", //Ship to address "Address2" => "", //Ship to address 2 "City" => "McDonough", //Ship to city "State" => "GA", //Ship to state (two letter abbreviation only) "ZipCode" => "30353", //Ship to zip code "Country" => "US", //Ship to county (two letter abbreviation only) "Method" => "Priority Mail" //Shipping method (ex. FedEx Next Day, etc...) ), "BillingAddress" => array( "FirstName" => "Noel", //Bill to first name "LastName" => "Jacques", //Bill to last name "EmailAddress" => "njacques@nizex.com", //Bill to email address "CompanyName" => "Nizex Inc.", //Bill to company name "Phone" => "6783594184", //Bill to phone number "Address" => "1735 Pennsylvania Ave.", //Bill to address "Address2" => "", //Bill to address 2 "City" => "McDonough", //Bill to city "State" => "GA", //Bill to state (two letter abbreviation only) "ZipCode" => "30353", //Bill to zip code "Country" => "US", //Bill to county (two letter abbreviation only) ), "OrderItems" => array( 0 => array( "ProductID" => "01-0013", //Product part number "ProductCode" => "PUN", //Product brand code "ProductDesc" => "Oil Filter, Kawasaki", //Product description "Price" => "6.95", //Price presented to customer (Format 0.00) "Quantity" => "2", //Quantity ordered "DropShip" => "True" //Flag item as a drop ship item. ), 1 => array( "ProductID" => "01-0021", //Product part number "ProductCode" => "PUN", //Product brand code "ProductDesc" => "Oil Filter, Honda", //Product description "Price" => "6.95", //Price presented to customer (Format 0.00) "Quantity" => "1" //Quantity ordered ))))); $orders = json_encode($orders); //Setup the curl request $qrystr = "&APIKey=".API_KEY."&Payload=$orders"; echo $qrystr;

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)
5.4.230.0110.04312.37
5.4.220.0120.04012.37
5.4.210.0080.04112.37
5.4.200.0080.04312.37
5.4.190.0100.03912.37
5.4.180.0100.04412.37
5.4.170.0130.03812.37
5.4.160.0090.04112.37
5.4.150.0090.04112.36
5.4.140.0110.04012.05
5.4.130.0110.04112.03
5.4.120.0090.03812.00
5.4.110.0080.04112.00
5.4.100.0090.03912.00
5.4.90.0100.03912.00
5.4.80.0100.04212.00
5.4.70.0110.04111.99
5.4.60.0100.04211.99
5.4.50.0100.04711.99
5.4.40.0190.05711.98
5.4.30.0110.04011.98
5.4.20.0090.03811.97
5.4.10.0100.03911.98
5.4.00.0080.04111.47
5.3.280.0100.04012.70
5.3.270.0090.04212.72
5.3.260.0100.04212.72
5.3.250.0100.04012.72
5.3.240.0090.04712.72
5.3.230.0110.04112.71
5.3.220.0110.04412.68
5.3.210.0100.04312.68
5.3.200.0090.03912.68
5.3.190.0100.04712.68
5.3.180.0090.04012.68
5.3.170.0110.03912.67
5.3.160.0110.03912.67
5.3.150.0100.04112.67
5.3.140.0140.03912.66
5.3.130.0100.04212.66
5.3.120.0100.04312.66
5.3.110.0100.04212.66
5.3.100.0090.04212.12
5.3.90.0120.04212.08
5.3.80.0080.04312.08
5.3.70.0090.04112.08
5.3.60.0110.04912.07
5.3.50.0090.04012.00
5.3.40.0100.04212.00
5.3.30.0080.04411.94
5.3.20.0100.04211.71
5.3.10.0100.04211.67
5.3.00.0110.04211.66

preferences:
139.3 ms | 1398 KiB | 7 Q