note 60325 added to function.echo
| From: | php dot net at emailfilter dot de | Date: | Tue, 03 Jan 2006 21:31:35 +0000 |
| Subject: | note 60325 added to function.echo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-101164@lists.php.net to get a copy of this message | ||
Concerning the new benchmark from marcus at synchromedia dot co dot uk I repeated the benchmark
again with PHP5.1.1 on a Windows OS. I used 25000 iterations and I got quite different results:
echo 'Key is ', $k, '<br>',"\n",'Value is ', $v,
'<br><br>', "\n";
0.13929414749146
echo 'Key is ', $k, "<br>\nValue is ", $v,
'<br><br>', "\n";
0.12937593460083
echo "Key is $k<br>\nValue is $v<br><br>\n";
0.26618194580078
echo 'Key is '. $k. '<br>'."\n".'Value is '. $v.
'<br><br>'. "\n";
0.15402412414551
Interpolation takes much longer.
----
Manual Page -- http://www.php.net/manual/en/function.echo.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+60325
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60325&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60325&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60325&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60325&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60325&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60325&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60325&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+60325&report=yes
Search -- http://master.php.net/manage/user-notes.php