3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Api { /** API URL */ public $api_url = 'https://wksmm.com/api/v2'; /** Your API key */ public $api_key = ''; /** Add order */ public function order($data) { $post = array_merge(['key' => $this->api_key, 'action' => 'add'], $data); return json_decode($this->connect($post)); } /** Get order status */ public function status($order_id) { return json_decode( $this->connect([ 'key' => $this->api_key, 'action' => 'status', 'order' => $order_id ]) ); } /** Get orders status */ public function multiStatus($order_ids) { return json_decode( $this->connect([ 'key' => $this->api_key, 'action' => 'status', 'orders' => implode(",", (array)$order_ids) ]) ); } /** Get services */ public function services() { return json_decode( $this->connect([ 'key' => $this->api_key, 'action' => 'services', ]) ); } /** Refill order */ public function refill(int $orderId) { return json_decode( $this->connect([ 'key' => $this->api_key, 'action' => 'refill', 'order' => $orderId, ]) ); } /** Refill orders */ public function multiRefill(array $orderIds) { return json_decode( $this->connect([ 'key' => $this->api_key, 'action' => 'refill', 'orders' => implode(',', $orderIds), ]), true, ); } /** Get refill status */ public function refillStatus(int $refillId) { return json_decode( $this->connect([ 'key' => $this->api_key, 'action' => 'refill_status', 'refill' => $refillId, ]) ); } /** Get refill statuses */ public function multiRefillStatus(array $refillIds) { return json_decode( $this->connect([ 'key' => $this->api_key, 'action' => 'refill_status', 'refills' => implode(',', $refillIds), ]), true, ); } /** Cancel orders */ public function cancel(array $orderIds) { return json_decode( $this->connect([ 'key' => $this->api_key, 'action' => 'cancel', 'orders' => implode(',', $orderIds), ]), true, ); } /** Get balance */ public function balance() { return json_decode( $this->connect([ 'key' => $this->api_key, 'action' => 'balance', ]) ); } private function connect($post) { $_post = []; if (is_array($post)) { foreach ($post as $name => $value) { $_post[] = $name . '=' . urlencode($value); } } $ch = curl_init($this->api_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); if (is_array($post)) { curl_setopt($ch, CURLOPT_POSTFIELDS, join('&', $_post)); } curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)'); $result = curl_exec($ch); if (curl_errno($ch) != 0 && empty($result)) { $result = false; } curl_close($ch); return $result; } } // Examples $api = new Api(); $services = $api->services(); # Return all services $balance = $api->balance(); # Return user balance // Add order $order = $api->order(['service' => 1, 'link' => 'http://example.com/test', 'quantity' => 100, 'runs' => 2, 'interval' => 5]); # Default $order = $api->order(['service' => 1, 'link' => 'http://example.com/test', 'quantity' => 100, 'keywords' => "test, testing"]); # SEO $order = $api->order(['service' => 1, 'link' => 'http://example.com/test', 'comments' => "good pic\ngreat photo\n:)\n;)"]); # Custom Comments $order = $api->order(['service' => 1, 'link' => 'http://example.com/test', 'quantity' => 100, 'usernames' => "test, testing", 'hashtags' => "#goodphoto"]); # Mentions with Hashtags $order = $api->order(['service' => 1, 'link' => 'http://example.com/test', 'usernames' => "test\nexample\nfb"]); # Mentions Custom List $order = $api->order(['service' => 1, 'link' => 'http://example.com/test', 'quantity' => 100, 'hashtag' => "test"]); # Mentions Hashtag $order = $api->order(['service' => 1, 'link' => 'http://example.com/test', 'quantity' => 1000, 'username' => "test"]); # Mentions User Followers $order = $api->order(['service' => 1, 'link' => 'http://example.com/test', 'quantity' => 1000, 'media' => "http://example.com/p/Ds2kfEr24Dr"]); # Mentions Media Likers $order = $api->order(['service' => 1, 'link' => 'http://example.com/test', 'quantity' => 1000, 'usernames' => "test"]); # Mentions $order = $api->order(['service' => 1, 'link' => 'http://example.com/test']); # Package $order = $api->order(['service' => 1, 'link' => 'http://example.com/test', 'quantity' => 100, 'runs' => 10, 'interval' => 60]); # Drip-feed // Old posts only $order = $api->order(['service' => 1, 'username' => 'username', 'min' => 100, 'max' => 110, 'posts' => 0, 'delay' => 30, 'expiry' => '11/11/2022']); # Subscriptions // Unlimited new posts and 5 old posts $order = $api->order(['service' => 1, 'username' => 'username', 'min' => 100, 'max' => 110, 'old_posts' => 5, 'delay' => 30, 'expiry' => '11/11/2022']); # Subscriptions $order = $api->order(['service' => 1, 'link' => 'http://example.com/test', 'quantity' => 100, 'username' => "test"]); # Comment Likes $order = $api->order(['service' => 1, 'link' => 'http://example.com/test', 'quantity' => 100, 'answer_number' => '7']); # Poll $order = $api->order(['service' => 1, 'link' => 'http://example.com/test', 'quantity' => 100, 'groups' => "group1\ngroup2"]); # Invites from Groups $status = $api->status($order->order); # Return status, charge, remains, start count, currency $statuses = $api->multiStatus([1, 2, 3]); # Return orders status, charge, remains, start count, currency $refill = (array) $api->multiRefill([1, 2]); $refillIds = array_column($refill, 'refill'); if ($refillIds) { $refillStatuses = $api->multiRefillStatus($refillIds); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 94, Position 2 = 98
Branch analysis from position: 94
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 98
filename:       /in/dPT1G
function name:  (null)
number of ops:  99
compiled vars:  !0 = $api, !1 = $services, !2 = $balance, !3 = $order, !4 = $status, !5 = $statuses, !6 = $refill, !7 = $refillIds, !8 = $refillStatuses
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
  158     0  E >   NEW                                                  $9      'Api'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $9
  160     3        INIT_METHOD_CALL                                             !0, 'services'
          4        DO_FCALL                                          0  $12     
          5        ASSIGN                                                       !1, $12
  162     6        INIT_METHOD_CALL                                             !0, 'balance'
          7        DO_FCALL                                          0  $14     
          8        ASSIGN                                                       !2, $14
  166     9        INIT_METHOD_CALL                                             !0, 'order'
         10        SEND_VAL_EX                                                  <array>
         11        DO_FCALL                                          0  $16     
         12        ASSIGN                                                       !3, $16
  168    13        INIT_METHOD_CALL                                             !0, 'order'
         14        SEND_VAL_EX                                                  <array>
         15        DO_FCALL                                          0  $18     
         16        ASSIGN                                                       !3, $18
  170    17        INIT_METHOD_CALL                                             !0, 'order'
         18        SEND_VAL_EX                                                  <array>
         19        DO_FCALL                                          0  $20     
         20        ASSIGN                                                       !3, $20
  172    21        INIT_METHOD_CALL                                             !0, 'order'
         22        SEND_VAL_EX                                                  <array>
         23        DO_FCALL                                          0  $22     
         24        ASSIGN                                                       !3, $22
  174    25        INIT_METHOD_CALL                                             !0, 'order'
         26        SEND_VAL_EX                                                  <array>
         27        DO_FCALL                                          0  $24     
         28        ASSIGN                                                       !3, $24
  176    29        INIT_METHOD_CALL                                             !0, 'order'
         30        SEND_VAL_EX                                                  <array>
         31        DO_FCALL                                          0  $26     
         32        ASSIGN                                                       !3, $26
  178    33        INIT_METHOD_CALL                                             !0, 'order'
         34        SEND_VAL_EX                                                  <array>
         35        DO_FCALL                                          0  $28     
         36        ASSIGN                                                       !3, $28
  180    37        INIT_METHOD_CALL                                             !0, 'order'
         38        SEND_VAL_EX                                                  <array>
         39        DO_FCALL                                          0  $30     
         40        ASSIGN                                                       !3, $30
  182    41        INIT_METHOD_CALL                                             !0, 'order'
         42        SEND_VAL_EX                                                  <array>
         43        DO_FCALL                                          0  $32     
         44        ASSIGN                                                       !3, $32
  184    45        INIT_METHOD_CALL                                             !0, 'order'
         46        SEND_VAL_EX                                                  <array>
         47        DO_FCALL                                          0  $34     
         48        ASSIGN                                                       !3, $34
  186    49        INIT_METHOD_CALL                                             !0, 'order'
         50        SEND_VAL_EX                                                  <array>
         51        DO_FCALL                                          0  $36     
         52        ASSIGN                                                       !3, $36
  189    53        INIT_METHOD_CALL                                             !0, 'order'
         54        SEND_VAL_EX                                                  <array>
         55        DO_FCALL                                          0  $38     
         56        ASSIGN                                                       !3, $38
  192    57        INIT_METHOD_CALL                                             !0, 'order'
         58        SEND_VAL_EX                                                  <array>
         59        DO_FCALL                                          0  $40     
         60        ASSIGN                                                       !3, $40
  194    61        INIT_METHOD_CALL                                             !0, 'order'
         62        SEND_VAL_EX                                                  <array>
         63        DO_FCALL                                          0  $42     
         64        ASSIGN                                                       !3, $42
  196    65        INIT_METHOD_CALL                                             !0, 'order'
         66        SEND_VAL_EX                                                  <array>
         67        DO_FCALL                                          0  $44     
         68        ASSIGN                                                       !3, $44
  198    69        INIT_METHOD_CALL                                             !0, 'order'
         70        SEND_VAL_EX                                                  <array>
         71        DO_FCALL                                          0  $46     
         72        ASSIGN                                                       !3, $46
  201    73        INIT_METHOD_CALL                                             !0, 'status'
         74        CHECK_FUNC_ARG                                               
         75        FETCH_OBJ_FUNC_ARG                                   $48     !3, 'order'
         76        SEND_FUNC_ARG                                                $48
         77        DO_FCALL                                          0  $49     
         78        ASSIGN                                                       !4, $49
  203    79        INIT_METHOD_CALL                                             !0, 'multiStatus'
         80        SEND_VAL_EX                                                  <array>
         81        DO_FCALL                                          0  $51     
         82        ASSIGN                                                       !5, $51
  204    83        INIT_METHOD_CALL                                             !0, 'multiRefill'
         84        SEND_VAL_EX                                                  <array>
         85        DO_FCALL                                          0  $53     
         86        CAST                                              7  ~54     $53
         87        ASSIGN                                                       !6, ~54
  205    88        INIT_FCALL                                                   'array_column'
         89        SEND_VAR                                                     !6
         90        SEND_VAL                                                     'refill'
         91        DO_ICALL                                             $56     
         92        ASSIGN                                                       !7, $56
  206    93      > JMPZ                                                         !7, ->98
  207    94    >   INIT_METHOD_CALL                                             !0, 'multiRefillStatus'
         95        SEND_VAR_EX                                                  !7
         96        DO_FCALL                                          0  $58     
         97        ASSIGN                                                       !8, $58
  208    98    > > RETURN                                                       1

Class Api:
Function order:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dPT1G
function name:  order
number of ops:  17
compiled vars:  !0 = $data, !1 = $post
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   RECV                                                 !0      
   13     1        INIT_FCALL                                                   'array_merge'
          2        FETCH_OBJ_R                                          ~2      'api_key'
          3        INIT_ARRAY                                           ~3      ~2, 'key'
          4        ADD_ARRAY_ELEMENT                                    ~3      'add', 'action'
          5        SEND_VAL                                                     ~3
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                             $4      
          8        ASSIGN                                                       !1, $4
   14     9        INIT_FCALL                                                   'json_decode'
         10        INIT_METHOD_CALL                                             'connect'
         11        SEND_VAR_EX                                                  !1
         12        DO_FCALL                                          0  $6      
         13        SEND_VAR                                                     $6
         14        DO_ICALL                                             $7      
         15      > RETURN                                                       $7
   15    16*     > RETURN                                                       null

End of function order

Function status:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dPT1G
function name:  status
number of ops:  13
compiled vars:  !0 = $order_id
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   18     0  E >   RECV                                                 !0      
   20     1        INIT_FCALL                                                   'json_decode'
   21     2        INIT_METHOD_CALL                                             'connect'
   22     3        FETCH_OBJ_R                                          ~1      'api_key'
          4        INIT_ARRAY                                           ~2      ~1, 'key'
   23     5        ADD_ARRAY_ELEMENT                                    ~2      'status', 'action'
   24     6        ADD_ARRAY_ELEMENT                                    ~2      !0, 'order'
          7        SEND_VAL_EX                                                  ~2
   21     8        DO_FCALL                                          0  $3      
   24     9        SEND_VAR                                                     $3
   20    10        DO_ICALL                                             $4      
   24    11      > RETURN                                                       $4
   27    12*     > RETURN                                                       null

End of function status

Function multistatus:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dPT1G
function name:  multiStatus
number of ops:  15
compiled vars:  !0 = $order_ids
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   30     0  E >   RECV                                                 !0      
   32     1        INIT_FCALL                                                   'json_decode'
   33     2        INIT_METHOD_CALL                                             'connect'
   34     3        FETCH_OBJ_R                                          ~1      'api_key'
          4        INIT_ARRAY                                           ~2      ~1, 'key'
   35     5        ADD_ARRAY_ELEMENT                                    ~2      'status', 'action'
   36     6        CAST                                              7  ~3      !0
          7        FRAMELESS_ICALL_2                implode             ~4      '%2C', ~3
          8        ADD_ARRAY_ELEMENT                                    ~2      ~4, 'orders'
          9        SEND_VAL_EX                                                  ~2
   33    10        DO_FCALL                                          0  $5      
   36    11        SEND_VAR                                                     $5
   32    12        DO_ICALL                                             $6      
   36    13      > RETURN                                                       $6
   39    14*     > RETURN                                                       null

End of function multistatus

Function services:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dPT1G
function name:  services
number of ops:  11
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   44     0  E >   INIT_FCALL                                                   'json_decode'
   45     1        INIT_METHOD_CALL                                             'connect'
   46     2        FETCH_OBJ_R                                          ~0      'api_key'
          3        INIT_ARRAY                                           ~1      ~0, 'key'
   47     4        ADD_ARRAY_ELEMENT                                    ~1      'services', 'action'
          5        SEND_VAL_EX                                                  ~1
   45     6        DO_FCALL                                          0  $2      
   47     7        SEND_VAR                                                     $2
   44     8        DO_ICALL                                             $3      
   47     9      > RETURN                                                       $3
   50    10*     > RETURN                                                       null

End of function services

Function refill:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dPT1G
function name:  refill
number of ops:  13
compiled vars:  !0 = $orderId
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   53     0  E >   RECV                                                 !0      
   55     1        INIT_FCALL                                                   'json_decode'
   56     2        INIT_METHOD_CALL                                             'connect'
   57     3        FETCH_OBJ_R                                          ~1      'api_key'
          4        INIT_ARRAY                                           ~2      ~1, 'key'
   58     5        ADD_ARRAY_ELEMENT                                    ~2      'refill', 'action'
   59     6        ADD_ARRAY_ELEMENT                                    ~2      !0, 'order'
          7        SEND_VAL_EX                                                  ~2
   56     8        DO_FCALL                                          0  $3      
   59     9        SEND_VAR                                                     $3
   55    10        DO_ICALL                                             $4      
   59    11      > RETURN                                                       $4
   62    12*     > RETURN                                                       null

End of function refill

Function multirefill:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dPT1G
function name:  multiRefill
number of ops:  15
compiled vars:  !0 = $orderIds
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   65     0  E >   RECV                                                 !0      
   67     1        INIT_FCALL                                                   'json_decode'
   68     2        INIT_METHOD_CALL                                             'connect'
   69     3        FETCH_OBJ_R                                          ~1      'api_key'
          4        INIT_ARRAY                                           ~2      ~1, 'key'
   70     5        ADD_ARRAY_ELEMENT                                    ~2      'refill', 'action'
   71     6        FRAMELESS_ICALL_2                implode             ~3      '%2C', !0
          7        ADD_ARRAY_ELEMENT                                    ~2      ~3, 'orders'
          8        SEND_VAL_EX                                                  ~2
   68     9        DO_FCALL                                          0  $4      
   71    10        SEND_VAR                                                     $4
   73    11        SEND_VAL                                                     <true>
   67    12        DO_ICALL                                             $5      
   73    13      > RETURN                                                       $5
   75    14*     > RETURN                                                       null

End of function multirefill

Function refillstatus:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dPT1G
function name:  refillStatus
number of ops:  13
compiled vars:  !0 = $refillId
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   78     0  E >   RECV                                                 !0      
   80     1        INIT_FCALL                                                   'json_decode'
   81     2        INIT_METHOD_CALL                                             'connect'
   82     3        FETCH_OBJ_R                                          ~1      'api_key'
          4        INIT_ARRAY                                           ~2      ~1, 'key'
   83     5        ADD_ARRAY_ELEMENT                                    ~2      'refill_status', 'action'
   84     6        ADD_ARRAY_ELEMENT                                    ~2      !0, 'refill'
          7        SEND_VAL_EX                                                  ~2
   81     8        DO_FCALL                                          0  $3      
   84     9        SEND_VAR                                                     $3
   80    10        DO_ICALL                                             $4      
   84    11      > RETURN                                                       $4
   87    12*     > RETURN                                                       null

End of function refillstatus

Function multirefillstatus:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dPT1G
function name:  multiRefillStatus
number of ops:  15
compiled vars:  !0 = $refillIds
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   90     0  E >   RECV                                                 !0      
   92     1        INIT_FCALL                                                   'json_decode'
   93     2        INIT_METHOD_CALL                                             'connect'
   94     3        FETCH_OBJ_R                                          ~1      'api_key'
          4        INIT_ARRAY                                           ~2      ~1, 'key'
   95     5        ADD_ARRAY_ELEMENT                                    ~2      'refill_status', 'action'
   96     6        FRAMELESS_ICALL_2                implode             ~3      '%2C', !0
          7        ADD_ARRAY_ELEMENT                                    ~2      ~3, 'refills'
          8        SEND_VAL_EX                                                  ~2
   93     9        DO_FCALL                                          0  $4      
   96    10        SEND_VAR                                                     $4
   98    11        SEND_VAL                                                     <true>
   92    12        DO_ICALL                                             $5      
   98    13      > RETURN                                                       $5
  100    14*     > RETURN                                                       null

End of function multirefillstatus

Function cancel:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dPT1G
function name:  cancel
number of ops:  15
compiled vars:  !0 = $orderIds
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
  103     0  E >   RECV                                                 !0      
  105     1        INIT_FCALL                                                   'json_decode'
  106     2        INIT_METHOD_CALL                                             'connect'
  107     3        FETCH_OBJ_R                                          ~1      'api_key'
          4        INIT_ARRAY                                           ~2      ~1, 'key'
  108     5        ADD_ARRAY_ELEMENT                                    ~2      'cancel', 'action'
  109     6        FRAMELESS_ICALL_2                implode             ~3      '%2C', !0
          7        ADD_ARRAY_ELEMENT                                    ~2      ~3, 'orders'
          8        SEND_VAL_EX                                                  ~2
  106     9        DO_FCALL                                          0  $4      
  109    10        SEND_VAR                                                     $4
  111    11        SEND_VAL                                                     <true>
  105    12        DO_ICALL                                             $5      
  111    13      > RETURN                                                       $5
  113    14*     > RETURN                                                       null

End of function cancel

Function balance:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dPT1G
function name:  balance
number of ops:  11
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
  118     0  E >   INIT_FCALL                                                   'json_decode'
  119     1        INIT_METHOD_CALL                                             'connect'
  120     2        FETCH_OBJ_R                                          ~0      'api_key'
          3        INIT_ARRAY                                           ~1      ~0, 'key'
  121     4        ADD_ARRAY_ELEMENT                                    ~1      'balance', 'action'
          5        SEND_VAL_EX                                                  ~1
  119     6        DO_FCALL                                          0  $2      
  121     7        SEND_VAR                                                     $2
  118     8        DO_ICALL                                             $3      
  121     9      > RETURN                                                       $3
  124    10*     > RETURN                                                       null

End of function balance

Function connect:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 16
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 15
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 15
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 60, Position 2 = 70
Branch analysis from position: 60
2 jumps found. (Code = 46) Position 1 = 85, Position 2 = 87
Branch analysis from position: 85
2 jumps found. (Code = 43) Position 1 = 88, Position 2 = 89
Branch analysis from position: 88
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 89
Branch analysis from position: 87
Branch analysis from position: 70
Branch analysis from position: 15
Branch analysis from position: 16
filename:       /in/dPT1G
function name:  connect
number of ops:  94
compiled vars:  !0 = $post, !1 = $_post, !2 = $value, !3 = $name, !4 = $ch, !5 = $result
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
  126     0  E >   RECV                                                 !0      
  128     1        ASSIGN                                                       !1, <array>
  129     2        TYPE_CHECK                                      128          !0
          3      > JMPZ                                                         ~7, ->16
  130     4    > > FE_RESET_R                                           $8      !0, ->15
          5    > > FE_FETCH_R                                           ~9      $8, !2, ->15
          6    >   ASSIGN                                                       !3, ~9
  131     7        CONCAT                                               ~12     !3, '%3D'
          8        INIT_FCALL                                                   'urlencode'
          9        SEND_VAR                                                     !2
         10        DO_ICALL                                             $13     
         11        CONCAT                                               ~14     ~12, $13
         12        ASSIGN_DIM                                                   !1
         13        OP_DATA                                                      ~14
  130    14      > JMP                                                          ->5
         15    >   FE_FREE                                                      $8
  135    16    >   INIT_FCALL_BY_NAME                                           'curl_init'
         17        CHECK_FUNC_ARG                                               
         18        FETCH_OBJ_FUNC_ARG                                   $15     'api_url'
         19        SEND_FUNC_ARG                                                $15
         20        DO_FCALL                                          0  $16     
         21        ASSIGN                                                       !4, $16
  136    22        INIT_FCALL_BY_NAME                                           'curl_setopt'
         23        SEND_VAR_EX                                                  !4
         24        FETCH_CONSTANT                                       ~18     'CURLOPT_RETURNTRANSFER'
         25        SEND_VAL_EX                                                  ~18
         26        SEND_VAL_EX                                                  1
         27        DO_FCALL                                          0          
  137    28        INIT_FCALL_BY_NAME                                           'curl_setopt'
         29        SEND_VAR_EX                                                  !4
         30        FETCH_CONSTANT                                       ~20     'CURLOPT_POST'
         31        SEND_VAL_EX                                                  ~20
         32        SEND_VAL_EX                                                  1
         33        DO_FCALL                                          0          
  138    34        INIT_FCALL_BY_NAME                                           'curl_setopt'
         35        SEND_VAR_EX                                                  !4
         36        FETCH_CONSTANT                                       ~22     'CURLOPT_HEADER'
         37        SEND_VAL_EX                                                  ~22
         38        SEND_VAL_EX                                                  0
         39        DO_FCALL                                          0          
  139    40        INIT_FCALL_BY_NAME                                           'curl_setopt'
         41        SEND_VAR_EX                                                  !4
         42        FETCH_CONSTANT                                       ~24     'CURLOPT_SSL_VERIFYPEER'
         43        SEND_VAL_EX                                                  ~24
         44        SEND_VAL_EX                                                  0
         45        DO_FCALL                                          0          
  140    46        INIT_FCALL_BY_NAME                                           'curl_setopt'
         47        SEND_VAR_EX                                                  !4
         48        FETCH_CONSTANT                                       ~26     'CURLOPT_SSL_VERIFYHOST'
         49        SEND_VAL_EX                                                  ~26
         50        SEND_VAL_EX                                                  0
         51        DO_FCALL                                          0          
  141    52        INIT_FCALL_BY_NAME                                           'curl_setopt'
         53        SEND_VAR_EX                                                  !4
         54        FETCH_CONSTANT                                       ~28     'CURLOPT_FOLLOWLOCATION'
         55        SEND_VAL_EX                                                  ~28
         56        SEND_VAL_EX                                                  <true>
         57        DO_FCALL                                          0          
  143    58        TYPE_CHECK                                      128          !0
         59      > JMPZ                                                         ~30, ->70
  144    60    >   INIT_FCALL_BY_NAME                                           'curl_setopt'
         61        SEND_VAR_EX                                                  !4
         62        FETCH_CONSTANT                                       ~31     'CURLOPT_POSTFIELDS'
         63        SEND_VAL_EX                                                  ~31
         64        INIT_FCALL                                                   'join'
         65        SEND_VAL                                                     '%26'
         66        SEND_VAR                                                     !1
         67        DO_ICALL                                             $32     
         68        SEND_VAR_NO_REF_EX

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.35 ms | 1651 KiB | 18 Q