3v4l.org

run code in 300+ PHP versions simultaneously
<?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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rfH3G
function name:  (null)
number of ops:  18
compiled vars:  !0 = $client, !1 = $apiKey, !2 = $apiPassword, !3 = $apiEndpoint, !4 = $transaction, !5 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_STATIC_METHOD_CALL                                  'Eway%5CRapid', 'createClient'
          1        SEND_VAR_EX                                              !1
          2        SEND_VAR_EX                                              !2
          3        SEND_VAR_EX                                              !3
          4        DO_FCALL                                      0  $6      
          5        ASSIGN                                                   !0, $6
    8     6        INIT_ARRAY                                       ~8      <array>, 'Customer'
          7        ADD_ARRAY_ELEMENT                                ~8      <array>, 'Payment'
   18     8        FETCH_CLASS_CONSTANT                             ~9      'Eway%5CRapid%5CEnum%5CTransactionType', 'PURCHASE'
          9        ADD_ARRAY_ELEMENT                                ~8      ~9, 'TransactionType'
    5    10        ASSIGN                                                   !4, ~8
   21    11        INIT_METHOD_CALL                                         !0, 'createTransaction'
         12        FETCH_CLASS_CONSTANT                             ~11     'Eway%5CRapid%5CEnum%5CApiMethod', 'DIRECT'
         13        SEND_VAL_EX                                              ~11
         14        SEND_VAR_EX                                              !4
         15        DO_FCALL                                      0  $12     
         16        ASSIGN                                                   !5, $12
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.04 ms | 1398 KiB | 13 Q