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;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/v9fqR
function name:  (null)
number of ops:  21
compiled vars:  !0 = $orders, !1 = $qrystr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'REST_URL'
          2        SEND_VAL                                                 'https%3A%2F%2Fapi.nizex.com%2Fsubmitorder'
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 'API_KEY'
          6        SEND_VAL                                                 'my-api-key'
          7        DO_ICALL                                                 
    6     8        ASSIGN                                                   !0, <array>
   58     9        INIT_FCALL                                               'json_encode'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $5      
         12        ASSIGN                                                   !0, $5
   61    13        FETCH_CONSTANT                                   ~7      'API_KEY'
         14        CONCAT                                           ~8      '%26APIKey%3D', ~7
         15        NOP                                                      
         16        FAST_CONCAT                                      ~9      '%26Payload%3D', !0
         17        CONCAT                                           ~10     ~8, ~9
         18        ASSIGN                                                   !1, ~10
   64    19        ECHO                                                     !1
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.74 ms | 1395 KiB | 17 Q