<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_61058"> <div class="blockcode"> <div id="code_Ys2"><ol> <li> <?php <li>$long_str = "this is a test to see how much time md5 function takes to execute over this string";</li> <li> <li>// start timing from here</li> <li>$start = microtime(true);</li> <li> <li>// function to test</li> <li>$md5 = md5($long_str);</li> <li> <li>$elapsed = microtime(true) - $start;</li> <li> <li>echo "That took $elapsed seconds.\n";</li> <li>?></li> <li> </ol></div> <em onclick="copycode($('code_Ys2'));">复制代码</em> </div> <br> </td></tr></table> <div class="ptg mbm mtn"> 执行时间, php</div> <div id="comment_61058" class="cm"> </div> <div id="post_rate_div_61058"></div> <br><br>