3v4l.org

run code in 300+ PHP versions simultaneously
<?php class GetResponse { private $api_key; private $api_url = 'https://api.getresponse.com/v3'; private $timeout = 8; private $enterprise_domain = null; public $http_status; /** * Set api key and optionally API endpoint * @param $api_key * @param null $api_url */ public function __construct ($api_key, $api_url = null) { $this->api_key = $api_key; if ( !empty($api_url)) $this->api_url = $api_url; } /** * We can modify internal settings * @param $key * @param $value */ function __set($key, $value) { $this->{$key} = $value; } /** * get account details * * @return mixed */ public function accounts() { return $this->call('accounts'); } /** * @return mixed */ public function ping() { return $this->accounts(); } /** * Return all campaigns * @return mixed */ public function getCampaigns() { return $this->call('campaigns'); } /** * get single campaign * @param string $campaign_id retrieved using API * @return mixed */ public function getCampaign($campaign_id) { return $this->call('campaigns/' . $campaign_id); } /** * adding campaign * @param $params * @return mixed */ public function createCampaign($params) { return $this->call('campaigns', 'POST', $params); } /** * list all RSS newsletters * @return mixed */ public function getRSSNewsletters() { $this->call('rss-newsletters', 'GET', null); } /** * send one newsletter * * @param $params * @return mixed */ public function sendNewsletter($params) { return $this->call('newsletters', 'POST', $params); } /** * @param $params * @return mixed */ public function sendDraftNewsletter($params) { return $this->call('newsletters/send-draft', 'POST', $params); } /** * add single contact into your campaign * * @param $params * @return mixed */ public function addContact($params) { return $this->call('contacts', 'POST', $params); } /** * retrieving contact by id * * @param string $contact_id - contact id obtained by API * @return mixed */ public function getContact($contact_id) { return $this->call('contacts/' . $contact_id); } /** * search contacts * * @param $params * @return mixed */ public function searchContacts($params = null) { return $this->call('search-contacts/' . $this->setParams($params)); } /** * retrieve segment * * @param $id * @return mixed */ public function getContactsSearch($id) { return $this->call('search-contacts/' . $id); } /** * add contacts search * * @param $params * @return mixed */ public function addContactsSearch($params) { return $this->call('search-contacts/', 'POST', $params); } /** * add contacts search * * @param $id * @return mixed */ public function deleteContactsSearch($id) { return $this->call('search-contacts/' . $id, 'DELETE'); } /** * get contact activities * @param $contact_id */ public function getContactActivities($contact_id) { $this->call('contacts/' . $contact_id . '/activities'); } /** * retrieving contact by params * @param array $params * * @return mixed */ public function getContacts($params = array()) { return $this->call('contacts?' . $this->setParams($params)); } /** * updating any fields of your subscriber (without email of course) * @param $contact_id * @param array $params * * @return mixed */ public function updateContact($contact_id, $params = array()) { return $this->call('contacts/' . $contact_id, 'POST', $params); } /** * drop single user by ID * * @param string $contact_id - obtained by API * @return mixed */ public function deleteContact($contact_id) { return $this->call('contacts/' . $contact_id, 'DELETE'); } /** * retrieve account custom fields * @param array $params * * @return mixed */ public function getCustomFields($params = array()) { return $this->call('custom-fields?' . $this->setParams($params)); } /** * add custom field * * @param $params * @return mixed */ public function setCustomField($params) { return $this->call('custom-fields', 'POST', $params); } /** * retrieve single custom field * * @param string $cs_id obtained by API * @return mixed */ public function getCustomField($custom_id) { return $this->call('custom-fields/' . $custom_id, 'GET'); } /** * retrieving billing information * * @return mixed */ public function getBillingInfo() { return $this->call('accounts/billing'); } /** * get single web form * * @param int $w_id * @return mixed */ public function getWebForm($w_id) { return $this->call('webforms/' . $w_id); } /** * retrieve all webforms * @param array $params * * @return mixed */ public function getWebForms($params = array()) { return $this->call('webforms?' . $this->setParams($params)); } /** * get single form * * @param int $form_id * @return mixed */ public function getForm($form_id) { return $this->call('forms/' . $form_id); } /** * retrieve all forms * @param array $params * * @return mixed */ public function getForms($params = array()) { return $this->call('forms?' . $this->setParams($params)); } /** * Curl run request * * @param null $api_method * @param string $http_method * @param array $params * @return mixed * @throws Exception */ private function call($api_method = null, $http_method = 'GET', $params = array()) { if (empty($api_method)) { return (object)array( 'httpStatus' => '400', 'code' => '1010', 'codeDescription' => 'Error in external resources', 'message' => 'Invalid api method' ); } $params = json_encode($params); $url = $this->api_url . '/' . $api_method; $options = array( CURLOPT_URL => $url, CURLOPT_ENCODING => 'gzip,deflate', CURLOPT_FRESH_CONNECT => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_TIMEOUT => $this->timeout, CURLOPT_HEADER => false, CURLOPT_USERAGENT => 'PHP GetResponse client 0.0.2', CURLOPT_HTTPHEADER => array('X-Auth-Token: api-key ' . $this->api_key, 'Content-Type: application/json') ); if ( !empty($this->enterprise_domain) ) { $options[CURLOPT_HTTPHEADER][] = 'X-Domain: ' . $this->enterprise_domain; } if ($http_method == 'POST') { $options[CURLOPT_POST] = 1; $options[CURLOPT_POSTFIELDS] = $params; } else if ($http_method == 'DELETE') { $options[CURLOPT_CUSTOMREQUEST] = 'DELETE'; } $curl = curl_init(); curl_setopt_array($curl, $options); $response = json_decode(curl_exec($curl)); $this->http_status = curl_getinfo($curl, CURLINFO_HTTP_CODE); curl_close($curl); return (object)$response; } /** * @param array $params * * @return string */ private function setParams($params = array()) { $result = array(); if (is_array($params)) { foreach ($params as $key => $value) { $result[$key] = $value; } } return http_build_query($result); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  357     0  E > > RETURN                                                   1

Class GetResponse:
Function __construct:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/VYMpv
function name:  __construct
number of ops:  10
compiled vars:  !0 = $api_key, !1 = $api_url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      null
   18     2        ASSIGN_OBJ                                               'api_key'
          3        OP_DATA                                                  !0
   20     4        ISSET_ISEMPTY_CV                                 ~3      !1
          5        BOOL_NOT                                         ~4      ~3
          6      > JMPZ                                                     ~4, ->9
          7    >   ASSIGN_OBJ                                               'api_url'
          8        OP_DATA                                                  !1
   21     9    > > RETURN                                                   null

End of function __construct

Function __set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  __set
number of ops:  5
compiled vars:  !0 = $key, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   29     2        ASSIGN_OBJ                                               !0
          3        OP_DATA                                                  !1
   30     4      > RETURN                                                   null

End of function __set

Function accounts:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  accounts
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   38     0  E >   INIT_METHOD_CALL                                         'call'
          1        SEND_VAL_EX                                              'accounts'
          2        DO_FCALL                                      0  $0      
          3      > RETURN                                                   $0
   39     4*     > RETURN                                                   null

End of function accounts

Function ping:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  ping
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   45     0  E >   INIT_METHOD_CALL                                         'accounts'
          1        DO_FCALL                                      0  $0      
          2      > RETURN                                                   $0
   46     3*     > RETURN                                                   null

End of function ping

Function getcampaigns:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  getCampaigns
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   53     0  E >   INIT_METHOD_CALL                                         'call'
          1        SEND_VAL_EX                                              'campaigns'
          2        DO_FCALL                                      0  $0      
          3      > RETURN                                                   $0
   54     4*     > RETURN                                                   null

End of function getcampaigns

Function getcampaign:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  getCampaign
number of ops:  7
compiled vars:  !0 = $campaign_id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   61     0  E >   RECV                                             !0      
   62     1        INIT_METHOD_CALL                                         'call'
          2        CONCAT                                           ~1      'campaigns%2F', !0
          3        SEND_VAL_EX                                              ~1
          4        DO_FCALL                                      0  $2      
          5      > RETURN                                                   $2
   63     6*     > RETURN                                                   null

End of function getcampaign

Function createcampaign:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  createCampaign
number of ops:  8
compiled vars:  !0 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   70     0  E >   RECV                                             !0      
   71     1        INIT_METHOD_CALL                                         'call'
          2        SEND_VAL_EX                                              'campaigns'
          3        SEND_VAL_EX                                              'POST'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $1      
          6      > RETURN                                                   $1
   72     7*     > RETURN                                                   null

End of function createcampaign

Function getrssnewsletters:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  getRSSNewsletters
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   79     0  E >   INIT_METHOD_CALL                                         'call'
          1        SEND_VAL_EX                                              'rss-newsletters'
          2        SEND_VAL_EX                                              'GET'
          3        SEND_VAL_EX                                              null
          4        DO_FCALL                                      0          
   80     5      > RETURN                                                   null

End of function getrssnewsletters

Function sendnewsletter:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  sendNewsletter
number of ops:  8
compiled vars:  !0 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   88     0  E >   RECV                                             !0      
   89     1        INIT_METHOD_CALL                                         'call'
          2        SEND_VAL_EX                                              'newsletters'
          3        SEND_VAL_EX                                              'POST'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $1      
          6      > RETURN                                                   $1
   90     7*     > RETURN                                                   null

End of function sendnewsletter

Function senddraftnewsletter:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  sendDraftNewsletter
number of ops:  8
compiled vars:  !0 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   96     0  E >   RECV                                             !0      
   97     1        INIT_METHOD_CALL                                         'call'
          2        SEND_VAL_EX                                              'newsletters%2Fsend-draft'
          3        SEND_VAL_EX                                              'POST'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $1      
          6      > RETURN                                                   $1
   98     7*     > RETURN                                                   null

End of function senddraftnewsletter

Function addcontact:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  addContact
number of ops:  8
compiled vars:  !0 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  106     0  E >   RECV                                             !0      
  107     1        INIT_METHOD_CALL                                         'call'
          2        SEND_VAL_EX                                              'contacts'
          3        SEND_VAL_EX                                              'POST'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $1      
          6      > RETURN                                                   $1
  108     7*     > RETURN                                                   null

End of function addcontact

Function getcontact:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  getContact
number of ops:  7
compiled vars:  !0 = $contact_id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  116     0  E >   RECV                                             !0      
  117     1        INIT_METHOD_CALL                                         'call'
          2        CONCAT                                           ~1      'contacts%2F', !0
          3        SEND_VAL_EX                                              ~1
          4        DO_FCALL                                      0  $2      
          5      > RETURN                                                   $2
  118     6*     > RETURN                                                   null

End of function getcontact

Function searchcontacts:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  searchContacts
number of ops:  10
compiled vars:  !0 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  127     0  E >   RECV_INIT                                        !0      null
  128     1        INIT_METHOD_CALL                                         'call'
          2        INIT_METHOD_CALL                                         'setParams'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0  $1      
          5        CONCAT                                           ~2      'search-contacts%2F', $1
          6        SEND_VAL_EX                                              ~2
          7        DO_FCALL                                      0  $3      
          8      > RETURN                                                   $3
  129     9*     > RETURN                                                   null

End of function searchcontacts

Function getcontactssearch:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  getContactsSearch
number of ops:  7
compiled vars:  !0 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  137     0  E >   RECV                                             !0      
  138     1        INIT_METHOD_CALL                                         'call'
          2        CONCAT                                           ~1      'search-contacts%2F', !0
          3        SEND_VAL_EX                                              ~1
          4        DO_FCALL                                      0  $2      
          5      > RETURN                                                   $2
  139     6*     > RETURN                                                   null

End of function getcontactssearch

Function addcontactssearch:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  addContactsSearch
number of ops:  8
compiled vars:  !0 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  147     0  E >   RECV                                             !0      
  148     1        INIT_METHOD_CALL                                         'call'
          2        SEND_VAL_EX                                              'search-contacts%2F'
          3        SEND_VAL_EX                                              'POST'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $1      
          6      > RETURN                                                   $1
  149     7*     > RETURN                                                   null

End of function addcontactssearch

Function deletecontactssearch:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  deleteContactsSearch
number of ops:  8
compiled vars:  !0 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  157     0  E >   RECV                                             !0      
  158     1        INIT_METHOD_CALL                                         'call'
          2        CONCAT                                           ~1      'search-contacts%2F', !0
          3        SEND_VAL_EX                                              ~1
          4        SEND_VAL_EX                                              'DELETE'
          5        DO_FCALL                                      0  $2      
          6      > RETURN                                                   $2
  159     7*     > RETURN                                                   null

End of function deletecontactssearch

Function getcontactactivities:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  getContactActivities
number of ops:  7
compiled vars:  !0 = $contact_id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  165     0  E >   RECV                                             !0      
  166     1        INIT_METHOD_CALL                                         'call'
          2        CONCAT                                           ~1      'contacts%2F', !0
          3        CONCAT                                           ~2      ~1, '%2Factivities'
          4        SEND_VAL_EX                                              ~2
          5        DO_FCALL                                      0          
  167     6      > RETURN                                                   null

End of function getcontactactivities

Function getcontacts:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  getContacts
number of ops:  10
compiled vars:  !0 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  175     0  E >   RECV_INIT                                        !0      <array>
  176     1        INIT_METHOD_CALL                                         'call'
          2        INIT_METHOD_CALL                                         'setParams'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0  $1      
          5        CONCAT                                           ~2      'contacts%3F', $1
          6        SEND_VAL_EX                                              ~2
          7        DO_FCALL                                      0  $3      
          8      > RETURN                                                   $3
  177     9*     > RETURN                                                   null

End of function getcontacts

Function updatecontact:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  updateContact
number of ops:  10
compiled vars:  !0 = $contact_id, !1 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  186     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <array>
  187     2        INIT_METHOD_CALL                                         'call'
          3        CONCAT                                           ~2      'contacts%2F', !0
          4        SEND_VAL_EX                                              ~2
          5        SEND_VAL_EX                                              'POST'
          6        SEND_VAR_EX                                              !1
          7        DO_FCALL                                      0  $3      
          8      > RETURN                                                   $3
  188     9*     > RETURN                                                   null

End of function updatecontact

Function deletecontact:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  deleteContact
number of ops:  8
compiled vars:  !0 = $contact_id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  196     0  E >   RECV                                             !0      
  197     1        INIT_METHOD_CALL                                         'call'
          2        CONCAT                                           ~1      'contacts%2F', !0
          3        SEND_VAL_EX                                              ~1
          4        SEND_VAL_EX                                              'DELETE'
          5        DO_FCALL                                      0  $2      
          6      > RETURN                                                   $2
  198     7*     > RETURN                                                   null

End of function deletecontact

Function getcustomfields:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  getCustomFields
number of ops:  10
compiled vars:  !0 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  206     0  E >   RECV_INIT                                        !0      <array>
  207     1        INIT_METHOD_CALL                                         'call'
          2        INIT_METHOD_CALL                                         'setParams'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0  $1      
          5        CONCAT                                           ~2      'custom-fields%3F', $1
          6        SEND_VAL_EX                                              ~2
          7        DO_FCALL                                      0  $3      
          8      > RETURN                                                   $3
  208     9*     > RETURN                                                   null

End of function getcustomfields

Function setcustomfield:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  setCustomField
number of ops:  8
compiled vars:  !0 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  216     0  E >   RECV                                             !0      
  217     1        INIT_METHOD_CALL                                         'call'
          2        SEND_VAL_EX                                              'custom-fields'
          3        SEND_VAL_EX                                              'POST'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $1      
          6      > RETURN                                                   $1
  218     7*     > RETURN                                                   null

End of function setcustomfield

Function getcustomfield:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  getCustomField
number of ops:  8
compiled vars:  !0 = $custom_id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  226     0  E >   RECV                                             !0      
  227     1        INIT_METHOD_CALL                                         'call'
          2        CONCAT                                           ~1      'custom-fields%2F', !0
          3        SEND_VAL_EX                                              ~1
          4        SEND_VAL_EX                                              'GET'
          5        DO_FCALL                                      0  $2      
          6      > RETURN                                                   $2
  228     7*     > RETURN                                                   null

End of function getcustomfield

Function getbillinginfo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  getBillingInfo
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  236     0  E >   INIT_METHOD_CALL                                         'call'
          1        SEND_VAL_EX                                              'accounts%2Fbilling'
          2        DO_FCALL                                      0  $0      
          3      > RETURN                                                   $0
  237     4*     > RETURN                                                   null

End of function getbillinginfo

Function getwebform:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  getWebForm
number of ops:  7
compiled vars:  !0 = $w_id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  245     0  E >   RECV                                             !0      
  246     1        INIT_METHOD_CALL                                         'call'
          2        CONCAT                                           ~1      'webforms%2F', !0
          3        SEND_VAL_EX                                              ~1
          4        DO_FCALL                                      0  $2      
          5      > RETURN                                                   $2
  247     6*     > RETURN                                                   null

End of function getwebform

Function getwebforms:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  getWebForms
number of ops:  10
compiled vars:  !0 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  255     0  E >   RECV_INIT                                        !0      <array>
  256     1        INIT_METHOD_CALL                                         'call'
          2        INIT_METHOD_CALL                                         'setParams'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0  $1      
          5        CONCAT                                           ~2      'webforms%3F', $1
          6        SEND_VAL_EX                                              ~2
          7        DO_FCALL                                      0  $3      
          8      > RETURN                                                   $3
  257     9*     > RETURN                                                   null

End of function getwebforms

Function getform:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  getForm
number of ops:  7
compiled vars:  !0 = $form_id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  265     0  E >   RECV                                             !0      
  266     1        INIT_METHOD_CALL                                         'call'
          2        CONCAT                                           ~1      'forms%2F', !0
          3        SEND_VAL_EX                                              ~1
          4        DO_FCALL                                      0  $2      
          5      > RETURN                                                   $2
  267     6*     > RETURN                                                   null

End of function getform

Function getforms:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYMpv
function name:  getForms
number of ops:  10
compiled vars:  !0 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  275     0  E >   RECV_INIT                                        !0      <array>
  276     1        INIT_METHOD_CALL                                         'call'
          2        INIT_METHOD_CALL                                         'setParams'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0  $1      
          5        CONCAT                                           ~2      'forms%3F', $1
          6        SEND_VAL_EX                                              ~2
          7        DO_FCALL                                      0  $3      
          8      > RETURN                                                   $3
  277     9*     > RETURN                                                   null

End of function getforms

Function call:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 40, Position 2 = 46
Branch analysis from position: 40
2 jumps found. (Code = 43) Position 1 = 48, Position 2 = 55
Branch analysis from position: 48
1 jumps found. (Code = 42) Position 1 = 60
Branch analysis from position: 60
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 55
2 jumps found. (Code = 43) Position 1 = 57, Position 2 = 60
Branch analysis from position: 57
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 60
Branch analysis from position: 46
filename:       /in/VYMpv
function name:  call
number of ops:  87
compiled vars:  !0 = $api_method, !1 = $http_method, !2 = $params, !3 = $url, !4 = $options, !5 = $curl, !6 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  288     0  E >   RECV_INIT                                        !0      null
          1        RECV_INIT                                        !1      'GET'
          2        RECV_INIT                                        !2      <array>
  290     3        ISSET_ISEMPTY_CV                                         !0
          4      > JMPZ                                                     ~7, ->7
  293     5    >   CAST                                          8  ~8      <array>
          6      > RETURN                                                   ~8
  300     7    >   INIT_FCALL                                               'json_encode'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $9      
         10        ASSIGN                                                   !2, $9
  301    11        FETCH_OBJ_R                                      ~11     'api_url'
         12        CONCAT                                           ~12     ~11, '%2F'
         13        CONCAT                                           ~13     ~12, !0
         14        ASSIGN                                                   !3, ~13
  304    15        FETCH_CONSTANT                                   ~15     'CURLOPT_URL'
         16        INIT_ARRAY                                       ~16     !3, ~15
  305    17        FETCH_CONSTANT                                   ~17     'CURLOPT_ENCODING'
         18        ADD_ARRAY_ELEMENT                                ~16     'gzip%2Cdeflate', ~17
  306    19        FETCH_CONSTANT                                   ~18     'CURLOPT_FRESH_CONNECT'
   

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
253.18 ms | 1420 KiB | 16 Q