Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $start = microtime(true);
- // Escrever um array de string com 1000 elementos no console
- $arr = array_map(function($i) { return "linha " . ($i+1); }, range(0, 999));
- echo implode("\n", $arr);
- $end = microtime(true);
- $timeInSeconds = number_format(($end - $start), 6);
- echo "Tempo de execução: {$timeInSeconds} segundos";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement