3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PostcodeNl_Api_JsonController// extends Mage_Core_Controller_Front_Action { public function lookupAction() { $helper = Mage::helper('postcodenl_api'); $this->getResponse()->setHeader('Content-type', 'application/json'); $this->getResponse()->setBody(json_encode($helper->lookupAddress( $this->getRequest()->getParam('postcode'), $this->getRequest()->getParam('houseNumber'), $this->getRequest()->getParam('houseNumberAddition') ))); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G4Bkc
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E > > RETURN                                                   1

Class PostcodeNl_Api_JsonController:
Function lookupaction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G4Bkc
function name:  lookupAction
number of ops:  39
compiled vars:  !0 = $helper
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_STATIC_METHOD_CALL                                  'Mage', 'helper'
          1        SEND_VAL_EX                                              'postcodenl_api'
          2        DO_FCALL                                      0  $1      
          3        ASSIGN                                                   !0, $1
    8     4        INIT_METHOD_CALL                                         'getResponse'
          5        DO_FCALL                                      0  $3      
          6        INIT_METHOD_CALL                                         $3, 'setHeader'
          7        SEND_VAL_EX                                              'Content-type'
          8        SEND_VAL_EX                                              'application%2Fjson'
          9        DO_FCALL                                      0          
    9    10        INIT_METHOD_CALL                                         'getResponse'
         11        DO_FCALL                                      0  $5      
         12        INIT_METHOD_CALL                                         $5, 'setBody'
         13        INIT_FCALL                                               'json_encode'
         14        INIT_METHOD_CALL                                         !0, 'lookupAddress'
   10    15        INIT_METHOD_CALL                                         'getRequest'
         16        DO_FCALL                                      0  $6      
         17        INIT_METHOD_CALL                                         $6, 'getParam'
         18        SEND_VAL_EX                                              'postcode'
         19        DO_FCALL                                      0  $7      
         20        SEND_VAR_NO_REF_EX                                       $7
   11    21        INIT_METHOD_CALL                                         'getRequest'
         22        DO_FCALL                                      0  $8      
         23        INIT_METHOD_CALL                                         $8, 'getParam'
         24        SEND_VAL_EX                                              'houseNumber'
         25        DO_FCALL                                      0  $9      
         26        SEND_VAR_NO_REF_EX                                       $9
   12    27        INIT_METHOD_CALL                                         'getRequest'
         28        DO_FCALL                                      0  $10     
         29        INIT_METHOD_CALL                                         $10, 'getParam'
         30        SEND_VAL_EX                                              'houseNumberAddition'
         31        DO_FCALL                                      0  $11     
         32        SEND_VAR_NO_REF_EX                                       $11
         33        DO_FCALL                                      0  $12     
         34        SEND_VAR                                                 $12
         35        DO_ICALL                                         $13     
         36        SEND_VAR_NO_REF_EX                                       $13
         37        DO_FCALL                                      0          
   14    38      > RETURN                                                   null

End of function lookupaction

End of class PostcodeNl_Api_JsonController.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.37 ms | 1400 KiB | 15 Q