3v4l.org

run code in 300+ PHP versions simultaneously
<?php $client = \Eway\Rapid::createClient($apiKey, $apiPassword, $apiEndpoint); $transaction = [ 'Customer' => [ 'Reference' => 'A12345', 'Title' => 'Mr.', 'FirstName' => 'John', 'LastName' => 'Smith', 'CompanyName' => 'Demo Shop 123', 'JobDescription' => 'Developer', 'Street1' => 'Level 5', 'Street2' => '369 Queen Street', 'City' => 'Sydney', 'State' => 'NSW', 'PostalCode' => '2000', 'Country' => 'au', 'Phone' => '09 889 0986', 'Mobile' => '09 889 6542', 'Email' => 'demo@example.org', "Url" => "http://www.ewaypayments.com", 'CardDetails' => [ 'Name' => 'John Smith', 'Number' => '4444333322221111', 'ExpiryMonth' => '12', 'ExpiryYear' => '25', 'CVN' => '123', ] ], 'ShippingAddress' => [ 'ShippingMethod' => \Eway\Rapid\Enum\ShippingMethod::NEXT_DAY, 'FirstName' => 'John', 'LastName' => 'Smith', 'Street1' => 'Level 5', 'Street2' => '369 Queen Street', 'City' => 'Sydney', 'State' => 'NSW', 'Country' => 'au', 'PostalCode' => '2000', 'Phone' => '09 889 0986', ], 'Items' => [ [ 'SKU' => '12345678901234567890', 'Description' => 'Item Description 1', 'Quantity' => 1, 'UnitCost' => 400, 'Tax' => 100, // Total is calculated automatically ], [ 'SKU' => '123456789012', 'Description' => 'Item Description 2', 'Quantity' => 1, 'UnitCost' => 400, 'Tax' => 100, ], ], 'Options' => [ [ 'Value' => 'Option1', ], [ 'Value' => 'Option2', ], ], 'Payment' => [ 'TotalAmount' => 1000, 'InvoiceNumber' => 'Inv 21540', 'InvoiceDescription' => 'Individual Invoice Description', 'InvoiceReference' => '513456', 'CurrencyCode' => 'AUD', ], 'DeviceID' => 'D1234', 'CustomerIP' => '127.0.0.1', 'PartnerID' => 'ID', 'TransactionType' => \Eway\Rapid\Enum\TransactionType::PURCHASE, 'Capture' => true, ]; $response = $client->createTransaction(\Eway\Rapid\Enum\ApiMethod::DIRECT, $transaction);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Class "Eway\Rapid" not found in /in/CDet7:3 Stack trace: #0 {main} thrown in /in/CDet7 on line 3
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
47.64 ms | 401 KiB | 8 Q