3v4l.org

run code in 300+ PHP versions simultaneously
<?php class StartTransactionResult { public $customerReference; // string public $errorDescription; // string public $redirectURL; // string public $success; // boolean } class TransactionDetails { public $billingAddress; // Address public $currencyCode; // int public $customerReference; // string public $description; // string public $goodsList; // GoodsItem public $languageCode; // string public $merchantAdditionalInformationList; // AdditionalInformation public $merchantId; // string public $returnURL; // string public $terminalId; // string public $totalAmount; // string public $merchantLocalDateTime;//string public $purchaserName;//string public $purchaserPhone;//string public $purchaserEmail;//string public $orderId;//string } class Address { public $addressLine1; // string public $addressLine2; // string public $city; // string public $country; // string public $county; // string public $zip; // string } class GoodsItem { public $amount; // string public $currencyCode; // int public $merchantsGoodsID; // string public $nameOfGoods; // string } class AdditionalInformation { public $key; // string public $value; // string } class StoredTransactionStatus { public $additionalInformation; // AdditionalInformation public $amountAuthorised; // string public $amountRefunded; // string public $amountRequested; // string public $amountSettled; // string public $authCode; // string public $goods; // GoodsItem public $transactionCurrencyCode; // string public $transactionStatus; // string } class startTransaction { public $transaction; // TransactionDetails } class startTransactionResponse { public $return; // StartTransactionResult } class refundTransaction { public $merchantId; // string public $password; // string public $referenceNr; // string public $refundAmount; // string public $description; // string public $goodsToRefund; // GoodsItem public $additionalInformation; // AdditionalInformation } class refundTransactionResponse { public $return; // boolean } class getVersionResponse { public $return; // string } class getTransactionStatus { public $merchantId; // string public $referenceNr; // string } class getTransactionStatusResponse { public $return; // StoredTransactionStatus } class completeTransaction { public $merchantId; // string public $referenceNr; // string public $transactionSuccess; // boolean public $overrideAmount; // string } class completeTransactionResponse { public $return; // boolean } /** * CNPMerchantWebServiceClient class * * * * @author {author} * @copyright {copyright} * @package {package} */ class CNPMerchantWebServiceClient extends SoapClient { private static $client = NULL; private static $classmap = array( 'StartTransactionResult' => 'StartTransactionResult', 'TransactionDetails' => 'TransactionDetails', 'Address' => 'Address', 'GoodsItem' => 'GoodsItem', 'AdditionalInformation' => 'AdditionalInformation', 'StoredTransactionStatus' => 'StoredTransactionStatus', 'startTransaction' => 'startTransaction', 'startTransactionResponse' => 'startTransactionResponse', 'refundTransaction' => 'refundTransaction', 'refundTransactionResponse' => 'refundTransactionResponse', 'getVersionResponse' => 'getVersionResponse', 'getTransactionStatus' => 'getTransactionStatus', 'getTransactionStatusResponse' => 'getTransactionStatusResponse', 'completeTransaction' => 'completeTransaction', 'completeTransactionResponse' => 'completeTransactionResponse', ); public function CNPMerchantWebServiceClient($wsdl = 'https://test.processing.kz/CNPMerchantWebServices/CNPMerchantWebService.wsdl', $options = array('connection_timeout' => 60, 'cache_wsdl' => WSDL_CACHE_MEMORY, 'trace' => 1, 'soap_version' => 'SOAP 1.2', 'encoding' => 'UTF-8', 'exceptions' => true, 'location' => 'https://test.processing.kz/CNPMerchantWebServices/services/CNPMerchantWebService')) { foreach(self::$classmap as $key => $value) { if(!isset($options['classmap'][$key])) { $options['classmap'][$key] = $value; } } parent::__construct($wsdl, $options); } /** * * * @param startTransaction $parameters * @return startTransactionResponse */ public function startTransaction(startTransaction $parameters) { return $this->__soapCall('startTransaction', array($parameters), array( 'uri' => 'https://kz.processing.cnp.merchant_ws/', 'soapaction' => '' ) ); } /** * * * @param refundTransaction $parameters * @return refundTransactionResponse */ public function refundTransaction(refundTransaction $parameters) { return $this->__soapCall('refundTransaction', array($parameters), array( 'uri' => 'https://kz.processing.cnp.merchant_ws/', 'soapaction' => '' ) ); } /** * * * @param * @return getVersionResponse */ public function getVersion() { return $this->__soapCall('getVersion', array(), array( 'uri' => 'https://kz.processing.cnp.merchant_ws/', 'soapaction' => '' ) ); } /** * * * @param getTransactionStatus $parameters * @return getTransactionStatusResponse */ public function getTransactionStatus(getTransactionStatus $parameters) { return $this->__soapCall('getTransactionStatus', array($parameters), array( 'uri' => 'https://kz.processing.cnp.merchant_ws/', 'soapaction' => '' ) ); } /** * * * @param completeTransaction $parameters * @return completeTransactionResponse */ public function completeTransaction(completeTransaction $parameters) { return $this->__soapCall('completeTransaction', array($parameters), array( 'uri' => 'https://kz.processing.cnp.merchant_ws/', 'soapaction' => '' ) ); } } function guid(){ if (function_exists('com_create_guid')){ return str_replace("}", "", str_replace("{", "", com_create_guid())); } else { mt_srand((double)microtime()*10000);//optional for php 4.2.0 and up. $charid = strtoupper(md5(uniqid(rand(), true))); $hyphen = chr(45);// "-" $uuid = substr($charid, 0, 8).$hyphen .substr($charid, 8, 4).$hyphen .substr($charid,12, 4).$hyphen .substr($charid,16, 4).$hyphen .substr($charid,20,12); } return $uuid; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L62YE
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  118     0  E >   DECLARE_CLASS                                            'cnpmerchantwebserviceclient', 'soapclient'
  246     1      > RETURN                                                   1

Function guid:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 18
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L62YE
function name:  guid
number of ops:  75
compiled vars:  !0 = $charid, !1 = $hyphen, !2 = $uuid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  229     0  E >   INIT_FCALL                                               'function_exists'
          1        SEND_VAL                                                 'com_create_guid'
          2        DO_ICALL                                         $3      
          3      > JMPZ                                                     $3, ->18
  230     4    >   INIT_FCALL                                               'str_replace'
          5        SEND_VAL                                                 '%7D'
          6        SEND_VAL                                                 ''
          7        INIT_FCALL                                               'str_replace'
          8        SEND_VAL                                                 '%7B'
          9        SEND_VAL                                                 ''
         10        INIT_FCALL_BY_NAME                                       'com_create_guid'
         11        DO_FCALL                                      0  $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
         15        DO_ICALL                                         $6      
         16      > RETURN                                                   $6
         17*       JMP                                                      ->73
  232    18    >   INIT_FCALL                                               'mt_srand'
         19        INIT_FCALL                                               'microtime'
         20        DO_ICALL                                         $7      
         21        CAST                                          5  ~8      $7
         22        MUL                                              ~9      ~8, 10000
         23        SEND_VAL                                                 ~9
         24        DO_ICALL                                                 
  233    25        INIT_FCALL                                               'strtoupper'
         26        INIT_FCALL                                               'md5'
         27        INIT_FCALL                                               'uniqid'
         28        INIT_FCALL                                               'rand'
         29        DO_ICALL                                         $11     
         30        SEND_VAR                                                 $11
         31        SEND_VAL                                                 <true>
         32        DO_ICALL                                         $12     
         33        SEND_VAR                                                 $12
         34        DO_ICALL                                         $13     
         35        SEND_VAR                                                 $13
         36        DO_ICALL                                         $14     
         37        ASSIGN                                                   !0, $14
  234    38        ASSIGN                                                   !1, '-'
  236    39        INIT_FCALL                                               'substr'
         40        SEND_VAR                                                 !0
         41        SEND_VAL                                                 0
         42        SEND_VAL                                                 8
         43        DO_ICALL                                         $17     
         44        CONCAT                                           ~18     $17, !1
  237    45        INIT_FCALL                                               'substr'
         46        SEND_VAR                                                 !0
         47        SEND_VAL                                                 8
         48        SEND_VAL                                                 4
         49        DO_ICALL                                         $19     
         50        CONCAT                                           ~20     ~18, $19
         51        CONCAT                                           ~21     ~20, !1
  238    52        INIT_FCALL                                               'substr'
         53        SEND_VAR                                                 !0
         54        SEND_VAL                                                 12
         55        SEND_VAL                                                 4
         56        DO_ICALL                                         $22     
         57        CONCAT                                           ~23     ~21, $22
         58        CONCAT                                           ~24     ~23, !1
  239    59        INIT_FCALL                                               'substr'
         60        SEND_VAR                                                 !0
         61        SEND_VAL                                                 16
         62        SEND_VAL                                                 4
         63        DO_ICALL                                         $25     
         64        CONCAT                                           ~26     ~24, $25
         65        CONCAT                                           ~27     ~26, !1
  240    66        INIT_FCALL                                               'substr'
         67        SEND_VAR                                                 !0
         68        SEND_VAL                                                 20
         69        SEND_VAL                                                 12
         70        DO_ICALL                                         $28     
         71        CONCAT                                           ~29     ~27, $28
  235    72        ASSIGN                                                   !2, ~29
  243    73      > RETURN                                                   !2
  244    74*     > RETURN                                                   null

End of function guid

Class StartTransactionResult: [no user functions]
Class TransactionDetails: [no user functions]
Class Address: [no user functions]
Class GoodsItem: [no user functions]
Class AdditionalInformation: [no user functions]
Class StoredTransactionStatus: [no user functions]
Class startTransaction: [no user functions]
Class startTransactionResponse: [no user functions]
Class refundTransaction: [no user functions]
Class refundTransactionResponse: [no user functions]
Class getVersionResponse: [no user functions]
Class getTransactionStatus: [no user functions]
Class getTransactionStatusResponse: [no user functions]
Class completeTransaction: [no user functions]
Class completeTransactionResponse: [no user functions]
Class CNPMerchantWebServiceClient:
Function cnpmerchantwebserviceclient:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 14
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 14
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 13
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/L62YE
function name:  CNPMerchantWebServiceClient
number of ops:  20
compiled vars:  !0 = $wsdl, !1 = $options, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  139     0  E >   RECV_INIT                                        !0      'https%3A%2F%2Ftest.processing.kz%2FCNPMerchantWebServices%2FCNPMerchantWebService.wsdl'
          1        RECV_INIT                                        !1      <const ast>
  147     2        FETCH_STATIC_PROP_R          unknown             ~4      'classmap'
          3      > FE_RESET_R                                       $5      ~4, ->14
          4    > > FE_FETCH_R                                       ~6      $5, !2, ->14
          5    >   ASSIGN                                                   !3, ~6
  148     6        FETCH_DIM_IS                                     ~8      !1, 'classmap'
          7        ISSET_ISEMPTY_DIM_OBJ                         0  ~9      ~8, !3
          8        BOOL_NOT                                         ~10     ~9
          9      > JMPZ                                                     ~10, ->13
  149    10    >   FETCH_DIM_W                                      $11     !1, 'classmap'
         11        ASSIGN_DIM                                               $11, !3
         12        OP_DATA                                                  !2
  147    13    > > JMP                                                      ->4
         14    >   FE_FREE                                                  $5
  152    15        INIT_STATIC_METHOD_CALL                                  
         16        SEND_VAR_EX                                              !0
         17        SEND_VAR_EX                                              !1
         18        DO_FCALL                                      0          
  153    19      > RETURN                                                   null

End of function cnpmerchantwebserviceclient

Function starttransaction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L62YE
function name:  startTransaction
number of ops:  9
compiled vars:  !0 = $parameters
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  161     0  E >   RECV                                             !0      
  162     1        INIT_METHOD_CALL                                         '__soapCall'
          2        SEND_VAL_EX                                              'startTransaction'
          3        INIT_ARRAY                                       ~1      !0
          4        SEND_VAL_EX                                              ~1
  163     5        SEND_VAL_EX                                              <array>
          6        DO_FCALL                                      0  $2      
          7      > RETURN                                                   $2
  168     8*     > RETURN                                                   null

End of function starttransaction

Function refundtransaction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L62YE
function name:  refundTransaction
number of ops:  9
compiled vars:  !0 = $parameters
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  176     0  E >   RECV                                             !0      
  177     1        INIT_METHOD_CALL                                         '__soapCall'
          2        SEND_VAL_EX                                              'refundTransaction'
          3        INIT_ARRAY                                       ~1      !0
          4        SEND_VAL_EX                                              ~1
  178     5        SEND_VAL_EX                                              <array>
          6        DO_FCALL                                      0  $2      
          7      > RETURN                                                   $2
  182     8*     > RETURN                                                   null

End of function refundtransaction

Function getversion:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L62YE
function name:  getVersion
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  191     0  E >   INIT_METHOD_CALL                                         '__soapCall'
          1        SEND_VAL_EX                                              'getVersion'
          2        SEND_VAL_EX                                              <array>
  192     3        SEND_VAL_EX                                              <array>
          4        DO_FCALL                                      0  $0      
          5      > RETURN                                                   $0
  196     6*     > RETURN                                                   null

End of function getversion

Function gettransactionstatus:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L62YE
function name:  getTransactionStatus
number of ops:  9
compiled vars:  !0 = $parameters
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  204     0  E >   RECV                                             !0      
  205     1        INIT_METHOD_CALL                                         '__soapCall'
          2        SEND_VAL_EX                                              'getTransactionStatus'
          3        INIT_ARRAY                                       ~1      !0
          4        SEND_VAL_EX                                              ~1
  206     5        SEND_VAL_EX                                              <array>
          6        DO_FCALL                                      0  $2      
          7      > RETURN                                                   $2
  210     8*     > RETURN                                                   null

End of function gettransactionstatus

Function completetransaction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L62YE
function name:  completeTransaction
number of ops:  9
compiled vars:  !0 = $parameters
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  218     0  E >   RECV                                             !0      
  219     1        INIT_METHOD_CALL                                         '__soapCall'
          2        SEND_VAL_EX                                              'completeTransaction'
          3        INIT_ARRAY                                       ~1      !0
          4        SEND_VAL_EX                                              ~1
  220     5        SEND_VAL_EX                                              <array>
          6        DO_FCALL                                      0  $2      
          7      > RETURN                                                   $2
  224     8*     > RETURN                                                   null

End of function completetransaction

End of class CNPMerchantWebServiceClient.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.49 ms | 1412 KiB | 31 Q