3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Example usage of the KrakenAPIClient library. * * See https://www.kraken.com/help/api for more info. * */ namespace Payward; /** * Reference implementation for Kraken's REST API. * * See https://www.kraken.com/help/api for more info. * * * The MIT License (MIT) * * Copyright (c) 2013 Payward, Inc * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ class KrakenAPIException extends \ErrorException {}; class KrakenAPI { protected $key; // API key protected $secret; // API secret protected $url; // API base URL protected $version; // API version protected $curl; // curl handle /** * Constructor for KrakenAPI * * @param string $key API key * @param string $secret API secret * @param string $url base URL for Kraken API * @param string $version API version * @param bool $sslverify enable/disable SSL peer verification. disable if using beta.api.kraken.com */ function __construct($key, $secret, $url='https://api.kraken.com', $version='0', $sslverify=true) { $this->key = $key; $this->secret = $secret; $this->url = $url; $this->version = $version; $this->curl = curl_init(); curl_setopt_array($this->curl, array( CURLOPT_SSL_VERIFYPEER => $sslverify, CURLOPT_SSL_VERIFYHOST => 2, CURLOPT_USERAGENT => 'Kraken PHP API Agent', CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true) ); } function __destruct() { curl_close($this->curl); } /** * Query public methods * * @param string $method method name * @param array $request request parameters * @return array request result on success * @throws KrakenAPIException */ function QueryPublic($method, array $request = array()) { // build the POST data string $postdata = http_build_query($request, '', '&'); // make request curl_setopt($this->curl, CURLOPT_URL, $this->url . '/' . $this->version . '/public/' . $method); curl_setopt($this->curl, CURLOPT_POSTFIELDS, $postdata); curl_setopt($this->curl, CURLOPT_HTTPHEADER, array()); $result = curl_exec($this->curl); if($result===false) throw new KrakenAPIException('CURL error: ' . curl_error($this->curl)); // decode results $result = json_decode($result, true); if(!is_array($result)) throw new KrakenAPIException('JSON decode error'); return $result; } /** * Query private methods * * @param string $method method path * @param array $request request parameters * @return array request result on success * @throws KrakenAPIException */ function QueryPrivate($method, array $request = array()) { if(!isset($request['nonce'])) { // generate a 64 bit nonce using a timestamp at microsecond resolution // string functions are used to avoid problems on 32 bit systems $nonce = explode(' ', microtime()); $request['nonce'] = $nonce[1] . str_pad(substr($nonce[0], 2, 6), 6, '0'); } // build the POST data string $postdata = http_build_query($request, '', '&'); // set API key and sign the message $path = '/' . $this->version . '/private/' . $method; $sign = hash_hmac('sha512', $path . hash('sha256', $request['nonce'] . $postdata, true), base64_decode($this->secret), true); $headers = array( 'API-Key: ' . $this->key, 'API-Sign: ' . base64_encode($sign) ); // make request curl_setopt($this->curl, CURLOPT_URL, $this->url . $path); curl_setopt($this->curl, CURLOPT_POSTFIELDS, $postdata); curl_setopt($this->curl, CURLOPT_HTTPHEADER, $headers); $result = curl_exec($this->curl); if($result===false) throw new KrakenAPIException('CURL error: ' . curl_error($this->curl)); // decode results $result = json_decode($result, true); if(!is_array($result)) throw new KrakenAPIException('JSON decode error'); return $result; } } // your api credentials $key = 'cYrXn9E+6xe7pGfrc1i/mrpnNAac7G7Z2fQ3UvNXq9BXHkTTyWZiRyCK'; $secret = 'zslMp0lAhGiEYMH7onNeiCd5NAlibEdk09Z4LL/xkn9EXPjIQumSKaUCTg5WmE4ZHFzgy+2fbRAA5lbGqvGI4Q=='; // set which platform to use (currently only beta is operational, live available soon) $beta = false; $url = $beta ? 'https://api.beta.kraken.com' : 'https://api.kraken.com'; $sslverify = $beta ? false : true; $version = 0; $kraken = new KrakenAPI($key, $secret, $url, $version, $sslverify); // Query private asset balances $res = $kraken->QueryPrivate('Balance'); print_r($res); /** * Example output: * * Array * ( * [error] => Array * ( * ) * * [result] => Array * ( * [ZUSD] => 3415.8014 * [ZEUR] => 155.5649 * [XBTC] => 149.9688412800 * [XXRP] => 499889.51600000 * ) * * ) */
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
Branch analysis from position: 11
filename:       /in/A3BY3
function name:  (null)
number of ops:  30
compiled vars:  !0 = $key, !1 = $secret, !2 = $beta, !3 = $url, !4 = $sslverify, !5 = $version, !6 = $kraken, !7 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  140     0  E >   ASSIGN                                                   !0, 'cYrXn9E%2B6xe7pGfrc1i%2FmrpnNAac7G7Z2fQ3UvNXq9BXHkTTyWZiRyCK'
  141     1        ASSIGN                                                   !1, 'zslMp0lAhGiEYMH7onNeiCd5NAlibEdk09Z4LL%2Fxkn9EXPjIQumSKaUCTg5WmE4ZHFzgy%2B2fbRAA5lbGqvGI4Q%3D%3D'
  143     2        ASSIGN                                                   !2, <false>
  144     3      > JMPZ                                                     !2, ->6
          4    >   QM_ASSIGN                                        ~11     'https%3A%2F%2Fapi.beta.kraken.com'
          5      > JMP                                                      ->7
          6    >   QM_ASSIGN                                        ~11     'https%3A%2F%2Fapi.kraken.com'
          7    >   ASSIGN                                                   !3, ~11
  145     8      > JMPZ                                                     !2, ->11
          9    >   QM_ASSIGN                                        ~13     <false>
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~13     <true>
         12    >   ASSIGN                                                   !4, ~13
  146    13        ASSIGN                                                   !5, 0
  147    14        NEW                                              $16     'Payward%5CKrakenAPI'
         15        SEND_VAR_EX                                              !0
         16        SEND_VAR_EX                                              !1
         17        SEND_VAR_EX                                              !3
         18        SEND_VAR_EX                                              !5
         19        SEND_VAR_EX                                              !4
         20        DO_FCALL                                      0          
         21        ASSIGN                                                   !6, $16
  150    22        INIT_METHOD_CALL                                         !6, 'QueryPrivate'
         23        SEND_VAL_EX                                              'Balance'
         24        DO_FCALL                                      0  $19     
         25        ASSIGN                                                   !7, $19
  151    26        INIT_NS_FCALL_BY_NAME                                    'Payward%5Cprint_r'
         27        SEND_VAR_EX                                              !7
         28        DO_FCALL                                      0          
  170    29      > RETURN                                                   1

Class Payward\KrakenAPIException: [no user functions]
Class Payward\KrakenAPI:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A3BY3
function name:  __construct
number of ops:  34
compiled vars:  !0 = $key, !1 = $secret, !2 = $url, !3 = $version, !4 = $sslverify
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   55     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV_INIT                                        !2      'https%3A%2F%2Fapi.kraken.com'
          3        RECV_INIT                                        !3      '0'
          4        RECV_INIT                                        !4      <true>
   57     5        ASSIGN_OBJ                                               'key'
          6        OP_DATA                                                  !0
   58     7        ASSIGN_OBJ                                               'secret'
          8        OP_DATA                                                  !1
   59     9        ASSIGN_OBJ                                               'url'
         10        OP_DATA                                                  !2
   60    11        ASSIGN_OBJ                                               'version'
         12        OP_DATA                                                  !3
   61    13        INIT_NS_FCALL_BY_NAME                                    'Payward%5Ccurl_init'
         14        DO_FCALL                                      0  $10     
         15        ASSIGN_OBJ                                               'curl'
         16        OP_DATA                                                  $10
   62    17        INIT_NS_FCALL_BY_NAME                                    'Payward%5Ccurl_setopt_array'
         18        CHECK_FUNC_ARG                                           
         19        FETCH_OBJ_FUNC_ARG                               $11     'curl'
         20        SEND_FUNC_ARG                                            $11
   63    21        FETCH_CONSTANT                                   ~12     'Payward%5CCURLOPT_SSL_VERIFYPEER'
         22        INIT_ARRAY                                       ~13     !4, ~12
   64    23        FETCH_CONSTANT                                   ~14     'Payward%5CCURLOPT_SSL_VERIFYHOST'
         24        ADD_ARRAY_ELEMENT                                ~13     2, ~14
   65    25        FETCH_CONSTANT                                   ~15     'Payward%5CCURLOPT_USERAGENT'
         26        ADD_ARRAY_ELEMENT                                ~13     'Kraken+PHP+API+Agent', ~15
   66    27        FETCH_CONSTANT                                   ~16     'Payward%5CCURLOPT_POST'
   63    28        ADD_ARRAY_ELEMENT                                ~13     <true>, ~16
   67    29        FETCH_CONSTANT                                   ~17     'Payward%5CCURLOPT_RETURNTRANSFER'
   63    30        ADD_ARRAY_ELEMENT                                ~13     <true>, ~17
         31        SEND_VAL_EX                                              ~13
         32        DO_FCALL                                      0          
   69    33      > RETURN                                                   null

End of function __construct

Function __destruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A3BY3
function name:  __destruct
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   72     0  E >   INIT_NS_FCALL_BY_NAME                                    'Payward%5Ccurl_close'
          1        CHECK_FUNC_ARG                                           
          2        FETCH_OBJ_FUNC_ARG                               $0      'curl'
          3        SEND_FUNC_ARG                                            $0
          4        DO_FCALL                                      0          
   73     5      > RETURN                                                   null

End of function __destruct

Function querypublic:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 46, Position 2 = 56
Branch analysis from position: 46
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 56
2 jumps found. (Code = 43) Position 1 = 66, Position 2 = 70
Branch analysis from position: 66
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 70
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A3BY3
function name:  QueryPublic
number of ops:  72
compiled vars:  !0 = $method, !1 = $request, !2 = $postdata, !3 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   82     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <array>
   85     2        INIT_NS_FCALL_BY_NAME                                    'Payward%5Chttp_build_query'
          3        SEND_VAR_EX                                              !1
          4        SEND_VAL_EX                                              ''
          5        SEND_VAL_EX                                              '%26'
          6        DO_FCALL                                      0  $4      
          7        ASSIGN                                                   !2, $4
   87     8        INIT_NS_FCALL_BY_NAME                                    'Payward%5Ccurl_setopt'
          9        CHECK_FUNC_ARG                                           
         10        FETCH_OBJ_FUNC_ARG                               $6      'curl'
         11        SEND_FUNC_ARG                                            $6
         12        FETCH_CONSTANT                                   ~7      'Payward%5CCURLOPT_URL'
         13        SEND_VAL_EX                                              ~7
         14        FETCH_OBJ_R                                      ~8      'url'
         15        CONCAT                                           ~9      ~8, '%2F'
         16        FETCH_OBJ_R                                      ~10     'version'
         17        CONCAT                                           ~11     ~9, ~10
         18        CONCAT                                           ~12     ~11, '%2Fpublic%2F'
         19        CONCAT                                           ~13     ~12, !0
         20        SEND_VAL_EX                                              ~13
         21        DO_FCALL                                      0          
   88    22        INIT_NS_FCALL_BY_NAME                                    'Payward%5Ccurl_setopt'
         23        CHECK_FUNC_ARG                                           
         24        FETCH_OBJ_FUNC_ARG                               $15     'curl'
         25        SEND_FUNC_ARG                                            $15
         26        FETCH_CONSTANT                                   ~16     'Payward%5CCURLOPT_POSTFIELDS'
         27        SEND_VAL_EX                                              ~16
         28        SEND_VAR_EX                                              !2
         29        DO_FCALL                                      0          
   89    30        INIT_NS_FCALL_BY_NAME                                    'Payward%5Ccurl_setopt'
         31        CHECK_FUNC_ARG                                           
         32        FETCH_OBJ_FUNC_ARG                               $18     'curl'
         33        SEND_FUNC_ARG                                            $18
         34        FETCH_CONSTANT                                   ~19     'Payward%5CCURLOPT_HTTPHEADER'
         35        SEND_VAL_EX                                              ~19
         36        SEND_VAL_EX                                              <array>
         37        DO_FCALL                                      0          
   90    38        INIT_NS_FCALL_BY_NAME                                    'Payward%5Ccurl_exec'
         39        CHECK_FUNC_ARG                                           
         40        FETCH_OBJ_FUNC_ARG                               $21     'curl'
         41        SEND_FUNC_ARG                                            $21
         42        DO_FCALL                                      0  $22     
         43        ASSIGN                                                   !3, $22
   91    44        TYPE_CHECK                                    4          !3
         45      > JMPZ                                                     ~24, ->56
   92    46    >   NEW                                              $25     'Payward%5CKrakenAPIException'
         47        INIT_NS_FCALL_BY_NAME                                    'Payward%5Ccurl_error'
         48        CHECK_FUNC_ARG                                           
         49        FETCH_OBJ_FUNC_ARG                               $26     'curl'
         50        SEND_FUNC_ARG                                            $26
         51        DO_FCALL                                      0  $27     
         52        CONCAT                                           ~28     'CURL+error%3A+', $27
         53        SEND_VAL_EX                                              ~28
         54        DO_FCALL                                      0          
         55      > THROW                                         0          $25
   94    56    >   INIT_NS_FCALL_BY_NAME                                    'Payward%5Cjson_decode'
         57        SEND_VAR_EX                                              !3
         58        SEND_VAL_EX                                              <true>
         59        DO_FCALL                                      0  $30     
         60        ASSIGN                                                   !3, $30
   95    61        INIT_NS_FCALL_BY_NAME                                    'Payward%5Cis_array'
         62        SEND_VAR_EX                                              !3
         63        DO_FCALL                                      0  $32     
         64        BOOL_NOT                                         ~33     $32
         65      > JMPZ                                                     ~33, ->70
   96    66    >   NEW                                              $34     'Payward%5CKrakenAPIException'
         67        SEND_VAL_EX                                              'JSON+decode+error'
         68        DO_FCALL                                      0          
         69      > THROW                                         0          $34
   97    70    > > RETURN                                                   !3
   98    71*     > RETURN                                                   null

End of function querypublic

Function queryprivate:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 28
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 102, Position 2 = 112
Branch analysis from position: 102
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 112
2 jumps found. (Code = 43) Position 1 = 122, Position 2 = 126
Branch analysis from position: 122
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 126
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
filename:       /in/A3BY3
function name:  QueryPrivate
number of ops:  128
compiled vars:  !0 = $method, !1 = $request, !2 = $nonce, !3 = $postdata, !4 = $path, !5 = $sign, !6 = $headers, !7 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  107     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <array>
  109     2        ISSET_ISEMPTY_DIM_OBJ                         0  ~8      !1, 'nonce'
          3        BOOL_NOT                                         ~9      ~8
          4      > JMPZ                                                     ~9, ->28
  112     5    >   INIT_NS_FCALL_BY_NAME                                    'Payward%5Cexplode'
          6        SEND_VAL_EX                                              '+'
          7        INIT_NS_FCALL_BY_NAME                                    'Payward%5Cmicrotime'
          8        DO_FCALL                                      0  $10     
          9        SEND_VAR_NO_REF_EX                                       $10
         10        DO_FCALL                                      0  $11     
         11        ASSIGN                                                   !2, $11
  113    12        FETCH_DIM_R                                      ~14     !2, 1
         13        INIT_NS_FCALL_BY_NAME                                    'Payward%5Cstr_pad'
         14        INIT_NS_FCALL_BY_NAME                                    'Payward%5Csubstr'
         15        CHECK_FUNC_ARG                                           
         16        FETCH_DIM_FUNC_ARG                               $15     !2, 0
         17        SEND_FUNC_ARG                                            $15
         18        SEND_VAL_EX                                              2
         19        SEND_VAL_EX                                              6
         20        DO_FCALL                                      0  $16     
         21        SEND_VAR_NO_REF_EX                                       $16
         22        SEND_VAL_EX                                              6
         23        SEND_VAL_EX                                              '0'
         24        DO_FCALL                                      0  $17     
         25        CONCAT                                           ~18     ~14, $17
         26        ASSIGN_DIM                                               !1, 'nonce'
         27        OP_DATA                                                  ~18
  116    28    >   INIT_NS_FCALL_BY_NAME                                    'Payward%5Chttp_build_query'
         29        SEND_VAR_EX                                              !1
         30        SEND_VAL_EX                                              ''
         31        SEND_VAL_EX                                              '%26'
         32        DO_FCALL                                      0  $19     
         33        ASSIGN                                                   !3, $19
  118    34        FETCH_OBJ_R                                      ~21     'version'
         35        CONCAT                                           ~22     '%2F', ~21
         36        CONCAT                                           ~23     ~22, '%2Fprivate%2F'
         37        CONCAT                                           ~24     ~23, !0
         38        ASSIGN                                                   !4, ~24
  119    39        INIT_NS_FCALL_BY_NAME                                    'Payward%5Chash_hmac'
         40        SEND_VAL_EX                                              'sha512'
         41        INIT_NS_FCALL_BY_NAME                                    'Payward%5Chash'
         42        SEND_VAL_EX                                              'sha256'
         43        FETCH_DIM_R                                      ~26     !1, 'nonce'
         44        CONCAT                                           ~27     ~26, !3
         45        SEND_VAL_EX                                              ~27
         46        SEND_VAL_EX                                              <true>
         47        DO_FCALL                                      0  $28     
         48        CONCAT                                           ~29     !4, $28
         49        SEND_VAL_EX                                              ~29
         50        INIT_NS_FCALL_BY_NAME                                    'Payward%5Cbase64_decode'
         51        CHECK_FUNC_ARG                                           
         52        FETCH_OBJ_FUNC_ARG                               $30     'secret'
         53        SEND_FUNC_ARG                                            $30
         54        DO_FCALL                                      0  $31     
         55        SEND_VAR_NO_REF_EX                                       $31
         56        SEND_VAL_EX                                              <true>
         57        DO_FCALL                                      0  $32     
         58        ASSIGN                                                   !5, $32
  121    59        FETCH_OBJ_R                                      ~34     'key'
         60        CONCAT                                           ~35     'API-Key%3A+', ~34
         61        INIT_ARRAY                                       ~36     ~35
  122    62        INIT_NS_FCALL_BY_NAME                                    'Payward%5Cbase64_encode'
         63        SEND_VAR_EX                                              !5
         64        DO_FCALL                                      0  $37     
         65        CONCAT                                           ~38     'API-Sign%3A+', $37
         66        ADD_ARRAY_ELEMENT                                ~36     ~38
  120    67        ASSIGN                                                   !6, ~36
  125    68        INIT_NS_FCALL_BY_NAME                                    'Payward%5Ccurl_setopt'
         69        CHECK_FUNC_ARG                                           
         70        FETCH_OBJ_FUNC_ARG                               $40     'curl'
         71        SEND_FUNC_ARG                                            $40
         72        FETCH_CONSTANT                                   ~41     'Payward%5CCURLOPT_URL'
         73        SEND_VAL_EX                                              ~41
         74        FETCH_OBJ_R                                      ~42     'url'
         75        CONCAT                                           ~43     ~42, !4
         76        SEND_VAL_EX                                              ~43
         77        DO_FCALL                                      0          
  126    78        INIT_NS_FCALL_BY_NAME                                    'Payward%5Ccurl_setopt'
         79        CHECK_FUNC_ARG                                           
         80        FETCH_OBJ_FUNC_ARG                               $45     'curl'
         81        SEND_FUNC_ARG                                            $45
         82        FETCH_CONSTANT                                   ~46     'Payward%5CCURLOPT_POSTFIELDS'
         83        SEND_VAL_EX                                              ~46
         84        SEND_VAR_EX                                              !3
         85        DO_FCALL                                      0          
  127    86        INIT_NS_FCALL_BY_NAME                                    'Payward%5Ccurl_setopt'
         87        CHECK_FUNC_ARG                                           
         88        FETCH_OBJ_FUNC_ARG                               $48     'curl'
         89        SEND_FUNC_ARG                                            $48
         90        FETCH_CONSTANT                                   ~49     'Payward%5CCURLOPT_HTTPHEADER'
         91        SEND_VAL_EX                                              ~49
         92        SEND_VAR_EX                                              !6
         93        DO_FCALL                                      0          
  128    94        INIT_NS_FCALL_BY_NAME                                    'Payward%5Ccurl_exec'
         95        CHECK_FUNC_ARG                                           
         96        FETCH_OBJ_FUNC_ARG                               $51     'curl'
         97        SEND_FUNC_ARG                                            $51
         98        DO_FCALL                                      0  $52     
         99        ASSIGN                                                   !7, $52
  129   100        TYPE_CHECK                                    4          !7
        101      > JMPZ                                                     ~54, ->112
  130   102    >   NEW                                              $55     'Payward%5CKrakenAPIException'
        103        INIT_NS_FCALL_BY_NAME                                    'Payward%5Ccurl_error'
        104        CHECK_FUNC_ARG                                           
        105        FETCH_OBJ_FUNC_ARG                               $56     'curl'
        106        SEND_FUNC_ARG                                            $56
        107        DO_FCALL                                      0  $57     
        108        CONCAT                                           ~58     'CURL+error%3A+', $57
        109        SEND_VAL_EX                                              ~58
        110        DO_FCALL                                      0          
        111      > THROW                                         0          $55
  132   112    >   INIT_NS_FCALL_BY_NAME                                    'Payward%5Cjson_decode'
        113        SEND_VAR_EX                                              !7
        114        SEND_VAL_EX                                              <true>
        115        DO_FCALL                                      0  $60     
        116        ASSIGN                                                   !7, $60
  133   117        INIT_NS_FCALL_BY_NAME                                    'Payward%5Cis_array'
        118        SEND_VAR_EX                                              !7
        119        DO_FCALL                                      0  $62     
        120        BOOL_NOT                                         ~63     $62
        121      > JMPZ                                                     ~63, ->126
  134   122    >   NEW                                              $64     'Payward%5CKrakenAPIException'
        123        SEND_VAL_EX                                              'JSON+decode+error'
        124        DO_FCALL                                      0          
        125      > THROW                                         0          $64
  135   126    > > RETURN                                                   !7
  136   127*     > RETURN                                                   null

End of function queryprivate

End of class Payward\KrakenAPI.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.99 ms | 1420 KiB | 49 Q