|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-06-03 20:10 UTC] rasmus
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 17:00:01 2025 UTC |
".=" operation seems to get slower and slower as string gets longer. Maybe some linear operation is being done on the string each time. Reproduce with: set_time_limit(3000); for ($i = 0; $i <= 100000; ++$i) { $o .= "x"; } I control-C'ed this after 135 seconds of run time. Similar perl code runs in about one second on the same system. Perl code is: for ($i = 0; $i < 100000; ++$i) { $o .= "x"; }