Supprimer un message
sbuysse
- <?php
- function getmicrotime()
- {
- list($usec, $sec) = explode(" ",microtime());
- return ((float)$usec + (float)$sec);
- }
- $args=array();
- for($i=0;$i<10000;$i++)
- $args[]="'line to output number $i
- '";
- $concatEcho="echo ".implode("
- .",$args).";";
- $paramEcho="echo ".implode("
- ,",$args).";";
- unset($args);
- $startParam=getmicrotime();
- eval($paramEcho);
- $endParam=getmicrotime();
- $startConcat=getmicrotime();
- eval($concatEcho);
- $endConcat=getmicrotime();
- $concatTime=$endConcat-$startConcat;
- $paramTime=$endParam-$startParam;
- print "
- Concats took $concatTime seconds
- Params took $paramTime
- ";
- ?>
un shti test ni vu ni connu