note 84253 deleted from language.references.pass by danbrown

From: Date: Thu, 28 Jan 2010 13:16:50 +0000
Subject: note 84253 deleted from language.references.pass by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-165410@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- function test1(&$par){ //reference used $foo = strlen($par); } function test2($par){ $foo = strlen($par); } // create 1MB long string $s = str_repeat(' ', 1e6); for($i=0; $i<1000; $i++) test1($s); // takes roughly seconds for($i=0; $i<1000; $i++) test2($s); // takes roughly 0.1 seconds

« previous php.notes (#165410) next »