Title / Description
Code <?php class IndexController extends Zend_Controller_Action { public function init() { /* Initialize action controller here */ } public function indexAction() { // action body $test = 'test'; Common_Debug::dump($test); Common_Debug::dump($this); // // Common_Bench::start('typage fort'); // for($i = 0; $i < 100000; $i++) { // $this->_test(1); // } // Common_Bench::end('typage fort'); // Common_Bench::start('typage faible'); for($i = 0; $i < 100000; $i++) { $this->_test2(array(1)); } Common_Bench::end('typage faible'); } private function _test(Integer $i) { } private function _test2(array $i) { } }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code