3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PostcodeNl_Api_Helper_Data //xtends 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]; } protected function _getConfigBoolString($configKey) { if (Mage::getStoreConfig($configKey)) return 'true'; return 'false'; } /** * Get the html for initializing validation script. * * @return string */ public function getJsinit($getAdminConfig = 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: ' . $this->_getConfigBoolString('postcodenl_api/advanced_config/admin_validation_disabled') . ', useStreet2AsHouseNumber: ' . $this->_getConfigBoolString('postcodenl_api/advanced_config/use_street2_as_housenumber') . ', blockPostOfficeBoxAddresses: '. $this->_getConfigBoolString('postcodenl_api/advanced_config/block_postofficeboxaddresses') . ', neverHideCountry: ' . $this->_getConfigBoolString('postcodenl_api/advanced_config/never_hide_country') . ', showcase: ' . $this->_getConfigBoolString('postcodenl_api/development_config/api_showcase') . ', debug: ' . $this->_getConfigBoolString('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/oDMNX
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  221     0  E > > RETURN                                                   1

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/oDMNX
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/oDMNX
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 _getconfigboolstring:
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/oDMNX
function name:  _getConfigBoolString
number of ops:  8
compiled vars:  !0 = $configKey
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   39     0  E >   RECV                                             !0      
   41     1        INIT_STATIC_METHOD_CALL                                  'Mage', 'getStoreConfig'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $1      
          4      > JMPZ                                                     $1, ->6
   42     5    > > RETURN                                                   'true'
   44     6    > > RETURN                                                   'false'
   45     7*     > RETURN                                                   null

End of function _getconfigboolstring

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.35 ms | 1428 KiB | 15 Q