3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $client = \Eway\Rapid::createClient($apiKey, $apiPassword, $apiEndpoint); $transaction = [ 'Customer' => [ 'CardDetails' => [ 'Name' => 'John Smith', 'Number' => '4444333322221111', 'ExpiryMonth' => '12', 'ExpiryYear' => '25', 'CVN' => '123', ] ], 'Payment' => [ 'TotalAmount' => 1000, ], 'TransactionType' => \Eway\Rapid\Enum\TransactionType::PURCHASE, ]; $response = $client->createTransaction(\Eway\Rapid\Enum\ApiMethod::DIRECT, $transaction);
based on s7n2J
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'Eway\Rapid' not found in /in/rfH3G:3 Stack trace: #0 {main} thrown in /in/rfH3G on line 3
Process exited with code 255.
Output for 5.4.10 - 5.6.28
Fatal error: Class 'Eway\Rapid' not found in /in/rfH3G on line 3
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/rfH3G on line 5
Process exited with code 255.