|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-15 23:40 UTC] tony2001@php.net
[2005-12-15 23:55 UTC] iliaa@php.net
[2005-12-16 00:21 UTC] dgdd at free dot fr
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 15:00:01 2025 UTC |
Description: ------------ Sorry for my bad english. PHP v5.1.1 : when using strtotime function intensively in my script the performance as reduced and the script is generate in 0,250 s ? With PHP 5.0.5, my script is generate in 0,055 s ! I'm test my script with PHP 5.1.1 without strtotime function -> this page was generate in 0,050 s ! Reproduce code: --------------- for ($i=1; $i<=30; $i++) { $timestamp = strtotime("-". (30-$i) ." day"); } for ( $i = 0; $i < 30; $i++ ){ $j = 29 - $i; $time_colone = date("y",strtotime("-$j day")).date("z",strtotime("-$j day")); }