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') ))); } }

preferences:
27.7 ms | 402 KiB | 5 Q