test
Php
code posted
created at 10 Sep 17:43, updated at 01 Oct 10:36
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
<?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) { } } |
823 Bytes in 2 ms with coderay