3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PostcodeNl_Api_Helper_Data extends Mage_Core_Helper_Abstract { const API_TIMEOUT = 3; const API_URL = 'https://api.postcode.nl'; protected $_modules; protected function _getMagentoVersion() { if ($this->_getModuleInfo('Enterprise_CatalogPermissions') !== null) { // Detect enterprise return 'MagentoEnterprise/'. Mage::getVersion(); } elseif ($this->_getModuleInfo('Enterprise_Enterprise') !== null) { // Detect professional return 'MagentoProfessional/'. Mage::getVersion(); } else { // Rest return 'Magento/'. Mage::getVersion(); } } protected function _getModuleInfo($moduleName) { if (!isset($this->_modules)) $this->_modules = (array)Mage::getConfig()->getNode('modules')->children(); if (!isset($this->_modules[$moduleName])) return null; return $this->_modules[$moduleName]; } /** * Get the html for initializing validation script. * * @return string */ public function getJsinit($getAdminConfig = false) { $getBool = function ($configKey) { if (Mage::getStoreConfig($configKey)) return 'true'; return 'false'; }; if ($getAdminConfig) $baseUrl = Mage::helper('adminhtml')->getUrl('*/pcnl/lookup', array('_secure' => true)); else $baseUrl = Mage::getUrl('postcodenl_api/json', array('_secure' => true)); $html = ' <script type="text/javascript"> //<![CDATA[ var PCNLAPI_CONFIG = { baseUrl: "' . htmlspecialchars($baseUrl) . '", adminValidationDisabled: ' . $getBool('postcodenl_api/advanced_config/admin_validation_disabled') . ', useStreet2AsHouseNumber: ' . $getBool('postcodenl_api/advanced_config/use_street2_as_housenumber') . ', blockPostOfficeBoxAddresses: '. $getBool('postcodenl_api/advanced_config/block_postofficeboxaddresses') . ', neverHideCountry: ' . $getBool('postcodenl_api/advanced_config/never_hide_country') . ', showcase: ' . $getBool('postcodenl_api/development_config/api_showcase') . ', debug: ' . $getBool('postcodenl_api/development_config/api_debug') . ', translations: { defaultError: "' . htmlspecialchars($this->__('Unknown postcode + housenumber combination.')) . '", postcodeInputLabel: "' . htmlspecialchars($this->__('Postcode')) . '", postcodeInputTitle: "' . htmlspecialchars($this->__('Postcode')) . '", houseNumberAdditionUnknown: "' . htmlspecialchars($this->__('Housenumber addition `{addition}` is unknown.')) . '", houseNumberAdditionRequired: "' . htmlspecialchars($this->__('Housenumber addition required.')) . '", houseNumberLabel: "' . htmlspecialchars($this->__('Housenumber')) . '", houseNumberTitle: "' . htmlspecialchars($this->__('Housenumber')) . '", houseNumberAdditionLabel: "' . htmlspecialchars($this->__('Housenumber addition')) . '", houseNumberAdditionTitle: "' . htmlspecialchars($this->__('Housenumber addition')) . '", selectAddition: "' . htmlspecialchars($this->__('Select...')) . '", noAdditionSelect: "' . htmlspecialchars($this->__('No addition.')) . '", noAdditionSelectCustom: "' . htmlspecialchars($this->__('`No addition`')) . '", additionSelectCustom: "' . htmlspecialchars($this->__('`{addition}`')) . '", apiShowcase: "' . htmlspecialchars($this->__('API Showcase')) . '", apiDebug: "' . htmlspecialchars($this->__('API Debug')) . '", disabledText: "' . htmlspecialchars($this->__('- disabled -')) . '", infoLabel: "' . htmlspecialchars($this->__('Address validation')) . '", infoText: "' . htmlspecialchars($this->__('Fill out your postcode and housenumber to auto-complete your address. You can also manually set your address information.')) . '", manualInputLabel: "' . htmlspecialchars($this->__('Manual input')) . '", manualInputText: "' . htmlspecialchars($this->__('Fill out address information manually')) . '", outputLabel: "' . htmlspecialchars($this->__('Validated address')) . '", postOfficeBoxNotAllowed: "' . htmlspecialchars($this->__('Post office box not allowed.')) . '" } }; //]]> </script>'; return $html; } public function lookupAddress($postcode, $houseNumber, $houseNumberAddition) { if (!Mage::getStoreConfig('postcodenl_api/config/enabled')) { return array('message' => $this->__('Postcode.nl API not enabled.')); } // Basic Configuration $serviceKey = trim(Mage::getStoreConfig('postcodenl_api/config/api_key')); $serviceSecret = trim(Mage::getStoreConfig('postcodenl_api/config/api_secret')); // Development options $serviceUrl = trim(Mage::getStoreConfig('postcodenl_api/development_config/api_url')); if (empty($serviceUrl)) $serviceUrl = self::API_URL; $serviceShowcase = Mage::getStoreConfig('postcodenl_api/development_config/api_showcase'); $serviceDebug = Mage::getStoreConfig('postcodenl_api/development_config/api_debug'); $extensionInfo = $this->_getModuleInfo('PostcodeNl_Api'); $extensionVersion = $extensionInfo ? (string)$extensionInfo->version : 'unknown'; if (!$serviceUrl || !$serviceKey || !$serviceSecret) { return array('message' => $this->__('Postcode.nl API not configured.')); } // Check for SSL support in CURL, if connecting to `https` if (substr($serviceUrl, 0, 8) == 'https://') { $curlVersion = curl_version(); if (!($curlVersion['features'] & CURL_VERSION_SSL)) { return array('message' => $this->__('Cannot connect to Postcode.nl API: Server is missing SSL (https) support for CURL.')); } } $url = $serviceUrl . '/rest/addresses/' . urlencode($postcode). '/'. urlencode($houseNumber) . '/'. urlencode($houseNumberAddition); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, self::API_TIMEOUT); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($ch, CURLOPT_USERPWD, $serviceKey .':'. $serviceSecret); curl_setopt($ch, CURLOPT_USERAGENT, 'PostcodeNl_Api_MagentoPlugin/' . $extensionVersion .' '. $this->_getMagentoVersion()); $jsonResponse = curl_exec($ch); $curlError = curl_error($ch); curl_close($ch); $response = json_decode($jsonResponse, true); $sendResponse = array(); if ($serviceShowcase) $sendResponse['showcaseResponse'] = $response; if ($serviceDebug) { $modules = array(); foreach (Mage::getConfig()->getNode('modules')->children() as $name => $module) { $modules[$name] = array(); foreach ($module as $key => $value) { if (in_array((string)$key, array('active'))) $modules[$name][$key] = (string)$value == 'true' ? true : false; else if (in_array((string)$key, array('codePool', 'version'))) $modules[$name][$key] = (string)$value; } } $sendResponse['debugInfo'] = array( 'requestUrl' => $url, 'rawResponse' => $jsonResponse, 'parsedResponse' => $response, 'curlError' => $curlError, 'configuration' => array( 'url' => $serviceUrl, 'key' => $serviceKey, 'secret' => substr($serviceSecret, 0, 6) .'[hidden]', 'showcase' => $serviceShowcase, 'debug' => $serviceDebug, ), 'magentoVersion' => $this->_getMagentoVersion(), 'extensionVersion' => $extensionVersion, 'modules' => $modules, ); } if (is_array($response) && isset($response['exceptionId'])) { switch ($response['exceptionId']) { case 'PostcodeNl_Controller_Address_InvalidPostcodeException': $sendResponse['message'] = $this->__('Invalid postcode format, use `1234AB` format.'); $sendResponse['messageTarget'] = 'postcode'; break; case 'PostcodeNl_Service_PostcodeAddress_AddressNotFoundException': $sendResponse['message'] = $this->__('Unknown postcode + housenumber combination.'); $sendResponse['messageTarget'] = 'housenumber'; break; case 'PostcodeNl_Controller_Address_InvalidHouseNumberException': $sendResponse['message'] = $this->__('Housenumber format is not valid.'); $sendResponse['messageTarget'] = 'housenumber'; break; default: $sendResponse['message'] = $this->__('Validation error, please use manual input.'); $sendResponse['messageTarget'] = 'housenumber'; break; } } else if (is_array($response) && isset($response['postcode'])) { $sendResponse = array_merge($sendResponse, $response); } else { $sendResponse['message'] = $this->__('Validation unavailable, please use manual input.'); $sendResponse['messageTarget'] = 'housenumber'; } return $sendResponse; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MU8PP
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CLASS                                            'postcodenl_api_helper_data', 'mage_core_helper_abstract'
  220     1      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FMU8PP%3A46%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MU8PP
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $configKey
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   46     0  E >   RECV                                             !0      
   47     1        INIT_STATIC_METHOD_CALL                                  'Mage', 'getStoreConfig'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $1      
          4      > JMPZ                                                     $1, ->6
   48     5    > > RETURN                                                   'true'
   50     6    > > RETURN                                                   'false'
   51     7*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FMU8PP%3A46%240

Class PostcodeNl_Api_Helper_Data:
Function _getmagentoversion:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 20
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MU8PP
function name:  _getMagentoVersion
number of ops:  25
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_METHOD_CALL                                         '_getModuleInfo'
          1        SEND_VAL_EX                                              'Enterprise_CatalogPermissions'
          2        DO_FCALL                                      0  $0      
          3        TYPE_CHECK                                  1020          $0
          4      > JMPZ                                                     ~1, ->10
   14     5    >   INIT_STATIC_METHOD_CALL                                  'Mage', 'getVersion'
          6        DO_FCALL                                      0  $2      
          7        CONCAT                                           ~3      'MagentoEnterprise%2F', $2
          8      > RETURN                                                   ~3
          9*       JMP                                                      ->24
   16    10    >   INIT_METHOD_CALL                                         '_getModuleInfo'
         11        SEND_VAL_EX                                              'Enterprise_Enterprise'
         12        DO_FCALL                                      0  $4      
         13        TYPE_CHECK                                  1020          $4
         14      > JMPZ                                                     ~5, ->20
   19    15    >   INIT_STATIC_METHOD_CALL                                  'Mage', 'getVersion'
         16        DO_FCALL                                      0  $6      
         17        CONCAT                                           ~7      'MagentoProfessional%2F', $6
         18      > RETURN                                                   ~7
         19*       JMP                                                      ->24
   24    20    >   INIT_STATIC_METHOD_CALL                                  'Mage', 'getVersion'
         21        DO_FCALL                                      0  $8      
         22        CONCAT                                           ~9      'Magento%2F', $8
         23      > RETURN                                                   ~9
   26    24*     > RETURN                                                   null

End of function _getmagentoversion

Function _getmoduleinfo:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 14
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 19
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/MU8PP
function name:  _getModuleInfo
number of ops:  23
compiled vars:  !0 = $moduleName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   RECV                                             !0      
   30     1        ISSET_ISEMPTY_PROP_OBJ                           ~1      '_modules'
          2        BOOL_NOT                                         ~2      ~1
          3      > JMPZ                                                     ~2, ->14
   31     4    >   INIT_STATIC_METHOD_CALL                                  'Mage', 'getConfig'
          5        DO_FCALL                                      0  $4      
          6        INIT_METHOD_CALL                                         $4, 'getNode'
          7        SEND_VAL_EX                                              'modules'
          8        DO_FCALL                                      0  $5      
          9        INIT_METHOD_CALL                                         $5, 'children'
         10        DO_FCALL                                      0  $6      
         11        CAST                                          7  ~7      $6
         12        ASSIGN_OBJ                                               '_modules'
         13        OP_DATA                                                  ~7
   33    14    >   FETCH_OBJ_IS                                     ~8      '_modules'
         15        ISSET_ISEMPTY_DIM_OBJ                         0  ~9      ~8, !0
         16        BOOL_NOT                                         ~10     ~9
         17      > JMPZ                                                     ~10, ->19
   34    18    > > RETURN                                                   null
   36    19    >   FETCH_OBJ_R                                      ~11     '_modules'
         20        FETCH_DIM_R                                      ~12     ~11, !0
         21      > RETURN                                                   ~12
   37    22*     > RETURN                                                   null

End of function _getmoduleinfo

Function getjsinit:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 13
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MU8PP
function name:  getJsinit
number of ops:  232
compiled vars:  !0 = $getAdminConfig, !1 = $getBool, !2 = $baseUrl, !3 = $html
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   44     0  E >   RECV_INIT                                        !0      <false>
   46     1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FMU8PP%3A46%240'
          2        ASSIGN                                                   !1, ~4
   53     3      > JMPZ                                                     !0, ->13
   54     4    >   INIT_STATIC_METHOD_CALL                                  'Mage', 'helper'
          5        SEND_VAL_EX                                              'adminhtml'
          6        DO_FCALL                                      0  $6      
          7        INIT_METHOD_CALL                                         $6, 'getUrl'
          8        SEND_VAL_EX                                              '%2A%2Fpcnl%2Flookup'
          9        SEND_VAL_EX                                              <array>
         10        DO_FCALL                                      0  $7      
         11        ASSIGN                                                   !2, $7
         12      > JMP                                                      ->18
   56    13    >   INIT_STATIC_METHOD_CALL                                  'Mage', 'getUrl'
         14        SEND_VAL_EX                                              'postcodenl_api%2Fjson'
         15        SEND_VAL_EX                                              <array>
         16        DO_FCALL                                      0  $9      
         17        ASSIGN                                                   !2, $9
   62    18    >   INIT_FCALL                                               'htmlspecialchars'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                         $11     
         21        CONCAT                                           ~12     '%0A%09%09%09%3Cscript+type%3D%22text%2Fjavascript%22%3E%0A%09%09%09%2F%2F%3C%21%5BCDATA%5B%0A%09%09%09%09var+PCNLAPI_CONFIG+%3D+%7B%0A%09%09%09%09%09baseUrl%3A+%22', $11
         22        CONCAT                                           ~13     ~12, '%22%2C%0A%09%09%09%09%09adminValidationDisabled%3A+'
   63    23        INIT_DYNAMIC_CALL                                        !1
         24        SEND_VAL_EX                                              'postcodenl_api%2Fadvanced_config%2Fadmin_validation_disabled'
         25        DO_FCALL                                      0  $14     
         26        CONCAT                                           ~15     ~13, $14
         27        CONCAT                                           ~16     ~15, '%2C%0A%09%09%09%09%09useStreet2AsHouseNumber%3A+'
   64    28        INIT_DYNAMIC_CALL                                        !1
         29        SEND_VAL_EX                                              'postcodenl_api%2Fadvanced_config%2Fuse_street2_as_housenumber'
         30        DO_FCALL                                      0  $17     
         31        CONCAT                                           ~18     ~16, $17
         32        CONCAT                                           ~19     ~18, '%2C%0A%09%09%09%09%09blockPostOfficeBoxAddresses%3A+'
   65    33        INIT_DYNAMIC_CALL                                        !1
         34        SEND_VAL_EX                                              'postcodenl_api%2Fadvanced_config%2Fblock_postofficeboxaddresses'
         35        DO_FCALL                                      0  $20     
         36        CONCAT                                           ~21     ~19, $20
         37        CONCAT                                           ~22     ~21, '%2C%0A%09%09%09%09%09neverHideCountry%3A+'
   66    38        INIT_DYNAMIC_CALL                                        !1
         39        SEND_VAL_EX                                              'postcodenl_api%2Fadvanced_config%2Fnever_hide_country'
         40        DO_FCALL                                      0  $23     
         41        CONCAT                                           ~24     ~22, $23
         42        CONCAT                                           ~25     ~24, '%2C%0A%09%09%09%09%09showcase%3A+'
   67    43        INIT_DYNAMIC_CALL                                        !1
         44        SEND_VAL_EX                                              'postcodenl_api%2Fdevelopment_config%2Fapi_showcase'
         45        DO_FCALL                                      0  $26     
         46        CONCAT                                           ~27     ~25, $26
         47        CONCAT                                           ~28     ~27, '%2C%0A%09%09%09%09%09debug%3A+'
   68    48        INIT_DYNAMIC_CALL                                        !1
         49        SEND_VAL_EX                                              'postcodenl_api%2Fdevelopment_config%2Fapi_debug'
         50        DO_FCALL                                      0  $29     
         51        CONCAT                                           ~30     ~28, $29
         52        CONCAT                                           ~31     ~30, '%2C%0A%09%09%09%09%09translations%3A+%7B%0A%09%09%09%09%09%09defaultError%3A+%22'
   70    53        INIT_FCALL                                               'htmlspecialchars'
         54        INIT_METHOD_CALL                                         '__'
         55        SEND_VAL_EX                                              'Unknown+postcode+%2B+housenumber+combination.'
         56        DO_FCALL                                      0  $32     
         57        SEND_VAR                                                 $32
         58        DO_ICALL                                         $33     
         59        CONCAT                                           ~34     ~31, $33
         60        CONCAT                                           ~35     ~34, '%22%2C%0A%09%09%09%09%09%09postcodeInputLabel%3A+%22'
   71    61        INIT_FCALL                                               'htmlspecialchars'
         62        INIT_METHOD_CALL                                         '__'
         63        SEND_VAL_EX                                              'Postcode'
         64        DO_FCALL                                      0  $36     
         65        SEND_VAR                                                 $36
         66        DO_ICALL                                         $37     
         67        CONCAT                                           ~38     ~35, $37
         68        CONCAT                                           ~39     ~38, '%22%2C%0A%09%09%09%09%09%09postcodeInputTitle%3A+%22'
   72    69        INIT_FCALL                                               'htmlspecialchars'
         70        INIT_METHOD_CALL                                         '__'
         71        SEND_VAL_EX                                              'Postcode'
         72        DO_FCALL                                      0  $40     
         73        SEND_VAR                                                 $40
         74        DO_ICALL                                         $41     
         75        CONCAT                                           ~42     ~39, $41
         76        CONCAT                                           ~43     ~42, '%22%2C%0A%09%09%09%09%09%09houseNumberAdditionUnknown%3A+%22'
   73    77        INIT_FCALL                                               'htmlspecialchars'
         78        INIT_METHOD_CALL                                         '__'
         79        SEND_VAL_EX                                              'Housenumber+addition+%60%7Baddition%7D%60+is+unknown.'
         80        DO_FCALL                                      0  $44     
         81        SEND_VAR                                                 $44
         82        DO_ICALL                                         $45     
         83        CONCAT                                           ~46     ~43, $45
         84        CONCAT                                           ~47     ~46, '%22%2C%0A%09%09%09%09%09%09houseNumberAdditionRequired%3A+%22'
   74    85        INIT_FCALL                                               'htmlspecialchars'
         86        INIT_METHOD_CALL                                         '__'
         87        SEND_VAL_EX                                              'Housenumber+addition+required.'
         88        DO_FCALL                                      0  $48     
         89        SEND_VAR                                                 $48
         90        DO_ICALL                                         $49     
         91        CONCAT                                           ~50     ~47, $49
         92        CONCAT                                           ~51     ~50, '%22%2C%0A%09%09%09%09%09%09houseNumberLabel%3A+%22'
   75    93        INIT_FCALL                                               'htmlspecialchars'
         94        INIT_METHOD_CALL                                         '__'
         95        SEND_VAL_EX                                              'Housenumber'
         96        DO_FCALL                                      0  $52     
         97        SEND_VAR                                                 $52
         98        DO_ICALL                                         $53     
         99        CONCAT                                           ~54     ~51, $53
        100        CONCAT                                           ~55     ~54, '%22%2C%0A%09%09%09%09%09%09houseNumberTitle%3A+%22'
   76   101        INIT_FCALL                                               'htmlspecialchars'
        102        INIT_METHOD_CALL                                         '__'
        103        SEND_VAL_EX                                              'Housenumber'
        104        DO_FCALL                                      0  $56     
        105        SEND_VAR                                                 $56
        106        DO_ICALL                                         $57     
        107        CONCAT                                           ~58     ~55, $57
        108        CONCAT                                           ~59     ~58, '%22%2C%0A%09%09%09%09%09%09houseNumberAdditionLabel%3A+%22'
   77   109        INIT_FCALL                                               'htmlspecialchars'
        110        INIT_METHOD_CALL                                         '__'
        111        SEND_VAL_EX                                              'Housenumber+addition'
        112        DO_FCALL                                      0  $60     
        113        SEND_VAR                                                 $60
        114        DO_ICALL                                         $61     
        115        CONCAT                                           ~62     ~59, $61
        116        CONCAT                                           ~63     ~62, '%22%2C%0A%09%09%09%09%09%09houseNumberAdditionTitle%3A+%22'
   78   117        INIT_FCALL                                               'htmlspecialchars'
        118        INIT_METHOD_CALL                                         '__'
        119        SEND_VAL_EX                                              'Housenumber+addition'
        120        DO_FCALL                                      0  $64     
        121        SEND_VAR                                                 $64
        122        DO_ICALL                                         $65     
        123        CONCAT                                           ~66     ~63, $65
        124        CONCAT                                           ~67     ~66, '%22%2C%0A%09%09%09%09%09%09selectAddition%3A+%22'
   79   125        INIT_FCALL                                               'htmlspecialchars'
        126        INIT_METHOD_CALL                                         '__'
        127        SEND_VAL_EX                                              'Select...'
        128        DO_FCALL                                      0  $68     
        129        SEND_VAR                                                 $68
        130        DO_ICALL                                         $69     
        131        CONCAT                                           ~70     ~67, $69
        132        CONCAT                                           ~71     ~70, '%22%2C%0A%09%09%09%09%09%09noAdditionSelect%3A+%22'
   80   133        INIT_FCALL                                               'htmlspecialchars'
        134        INIT_METHOD_CALL                                         '__'
        135        SEND_VAL_EX                                              'No+addition.'
        136        DO_FCALL                                      0  $72     
        137        SEND_VAR                                                 $72
        138        DO_ICALL                                         $73     
        139        CONCAT                                           ~74     ~71, $73
        140        CONCAT                                           ~75     ~74, '%22%2C%0A%09%09%09%09%09%09noAdditionSelectCustom%3A+%22'
   81   141        INIT_FCALL                                               'htmlspecialchars'
        142        INIT_METHOD_CALL                                         '__'
        143        SEND_VAL_EX                                              '%60No+addition%60'
        144        DO_FCALL                                      0  $76     
        145        SEND_VAR                                                 $76
        146        DO_ICALL                                         $77     
        147        CONCAT                                           ~78     ~75, $77
        148        CONCAT                                           ~79     ~78, '%22%2C%0A%09%09%09%09%09%09additionSelectCustom%3A+%22'
   82   149        INIT_FCALL                                               'htmlspecialchars'
        150        INIT_METHOD_CALL                                         '__'
        151        SEND_VAL_EX                                              '%60%7Baddition%7D%60'
        152        DO_FCALL                                      0  $80     
        153        SEND_VAR                                                 $80
        154        DO_ICALL                                         $81     
        155        CONCAT                                           ~82     ~79, $81
        156        CONCAT                                           ~83     ~82, '%22%2C%0A%09%09%09%09%09%09apiShowcase%3A+%22'
   83   157        INIT_FCALL                                               'htmlspecialchars'
        158        INIT_METHOD_CALL                                         '__'
        159        SEND_VAL_EX                                              'API+Showcase'
        160        DO_FCALL                                      0  $84     
        161        SEND_VAR                                                 $84
        162        DO_ICALL                                         $85     
        163        CONCAT                                           ~86     ~83, $85
        164        CONCAT                                           ~87     ~86, '%22%2C%0A%09%09%09%09%09%09apiDebug%3A+%22'
   84   165        INIT_FCALL                                               'htmlspecialchars'
        166        INIT_METHOD_CALL                                         '__'
        167        SEND_VAL_EX                                              'API+Debug'
        168        DO_FCALL                                      0  $88     
        169        SEND_VAR                                                 $88
        170        DO_ICALL                                         $89     
        171        CONCAT                                           ~90     ~87, $89
        172        CONCAT                                           ~91     ~90, '%22%2C%0A%09%09%09%09%09%09disabledText%3A+%22'
   85   173        INIT_FCALL                                               'htmlspecialchars'
        174        INIT_METHOD_CALL                                         '__'
        175        SEND_VAL_EX                                              '-+disabled+-'
        176        DO_FCALL                                      0  $92     
        177        SEND_VAR                                                 $92
        178        DO_ICALL                                         $93     
        179        CONCAT                                           ~94     ~91, $93
        180        CONCAT                                           ~95     ~94, '%22%2C%0A%09%09%09%09%09%09infoLabel%3A+%22'
   86   181        INIT_FCALL                                               'htmlspecialchars'
        182        INIT_METHOD_CALL                                         '__'
        183        SEND_VAL_EX                                              'Address+validation'
        184        DO_FCALL                                      0  $96     
        185        SEND_VAR                                                 $96
        186        DO_ICALL                                         $97     
        187        CONCAT                                           ~98     ~95, $97
        188        CONCAT                                           ~99     ~98, '%22%2C%0A%09%09%09%09%09%09infoText%3A+%22'
   87   189        INIT_FCALL                                               'htmlspecialchars'
        190        INIT_METHOD_CALL                                         '__'
        191        SEND_VAL_EX                                              'Fill+out+your+postcode+and+housenumber+to+auto-complete+your+address.+You+can+also+manually+set+your+address+information.'
        192        DO_FCALL                                      0  $100    
        193        SEND_VAR                                                 $100
        194        DO_ICALL                                         $101    
        195        CONCAT                                           ~102    ~99, $101
        196        CONCAT                                           ~103    ~102, '%22%2C%0A%09%09%09%09%09%09manualInputLabel%3A+%22'
   88   197        INIT_FCALL                                               'htmlspecialchars'
        198        INIT_METHOD_CALL                                         '__'
        199        SEND_VAL_EX                                              'Manual+input'
        200        DO_FCALL                                      0  $104    
        201        SEND_VAR                                                 $104
        202        DO_ICALL                                         $105    
        203        CONCAT                                           ~106    ~103, $105
        204        CONCAT                                           ~107    ~106, '%22%2C%0A%09%09%09%09%09%09manualInputText%3A+%22'
   89   205        INIT_FCALL                                               'htmlspecialchars'
        206        INIT_METHOD_CALL                                         '__'
        207        SEND_VAL_EX                                              'Fill+out+address+information+manually'
        208        DO_FCALL                                      0  $108    
        209        SEND_VAR                                                 $108
        210        DO_ICALL                                         $109    
        211        CONCAT                                           ~110    ~107, $109
        212        CONCAT                                           ~111    ~110, '%22%2C%0A%09%09%09%09%09%09outputLabel%3A+%22'
   90   213        INIT_FCALL                                               'htmlspecialchars'
        214        INIT_METHOD_CALL                                         '__'
        215        SEND_VAL_EX                                              'Validated+address'
        216        DO_FCALL                                      0  $112    
        217        SEND_VAR                                                 $112
        218        DO_ICALL                                         $113    
        219        CONCAT                                           ~114    ~111, $113
        220        CONCAT                                           ~115    ~114, '%22%2C%0A%09%09%09%09%09%09postOfficeBoxNotAllowed%3A+%22'
   91   221        INIT_FCALL                                               'htmlspecialchars'
        222        INIT_METHOD_CALL                                         '__'
        223        SEND_VAL_EX                                              'Post+office+box+not+allowed.'
        224        DO_FCALL                                      0  $116    
        225        SEND_VAR                                                 $116
        226        DO_ICALL                                         $117    
        227        CONCAT                                           ~118    ~115, $117
        228        CONCAT                                           ~119    ~118, '%22%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D%3B%0A%09%09%09%2F%2F%5D%5D%3E%0A%09%09%09%3C%2Fscript%3E'
   58   229        ASSIGN                                                   !3, ~119
   97   230      > RETURN                                                   !3
   98   231*     > RETURN                                                   null

End of function getjsinit

Function lookupaddress:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 37
Branch analysis from position: 36
2 jumps found. (Code = 43) Position 1 = 50, Position 2 = 54
Branch analysis from position: 50
1 jumps found. (Code = 42) Position 1 = 55
Branch analysis from position: 55
2 jumps found. (Code = 47) Position 1 = 58, Position 2 = 60
Branch analysis from position: 58
2 jumps found. (Code = 47) Position 1 = 61, Position 2 = 63
Branch analysis from position: 61
2 jumps found. (Code = 43) Position 1 = 64, Position 2 = 69
Branch analysis from position: 64
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 69
2 jumps found. (Code = 43) Position 1 = 76, Position 2 = 89
Branch analysis from position: 76
2 jumps found. (Code = 43) Position 1 = 84, Position 2 = 89
Branch analysis from position: 84
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 89
2 jumps found. (Code = 43) Position 1 = 170, Position 2 = 172
Branch analysis from position: 170
2 jumps found. (Code = 43) Position 1 = 173, Position 2 = 236
Branch analysis from position: 173
2 jumps found. (Code = 77) Position 1 = 182, Position 2 = 212
Branch analysis from position: 182
2 jumps found. (Code = 78) Position 1 = 183, Position 2 = 212
Branch analysis from position: 183
2 jumps found. (Code = 77) Position 1 = 187, Position 2 = 210
Branch analysis from position: 187
2 jumps found. (Code = 78) Position 1 = 188, Position 2 = 210
Branch analysis from position: 188
2 jumps found. (Code = 43) Position 1 = 192, Position 2 = 202
Branch analysis from position: 192
2 jumps found. (Code = 43) Position 1 = 195, Position 2 = 197
Branch analysis from position: 195
1 jumps found. (Code = 42) Position 1 = 198
Branch analysis from position: 198
1 jumps found. (Code = 42) Position 1 = 209
Branch analysis from position: 209
1 jumps found. (Code = 42) Position 1 = 187
Branch analysis from position: 187
Branch analysis from position: 197
1 jumps found. (Code = 42) Position 1 = 209
Branch analysis from position: 209
Branch analysis from position: 202
2 jumps found. (Code = 43) Position 1 = 205, Position 2 = 209
Branch analysis from position: 205
1 jumps found. (Code = 42) Position 1 = 187
Branch analysis from position: 187
Branch analysis from position: 209
Branch analysis from position: 210
1 jumps found. (Code = 42) Position 1 = 182
Branch analysis from position: 182
Branch analysis from position: 210
Branch analysis from position: 212
2 jumps found. (Code = 46) Position 1 = 238, Position 2 = 240
Branch analysis from position: 238
2 jumps found. (Code = 43) Position 1 = 241, Position 2 = 284
Branch analysis from position: 2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.8 ms | 1428 KiB | 15 Q