Following script is to create 1 lack html buttons.
<?php
for($i=1; $i<=100000;$i++)
{
echo "<button>".$i."</button>";
}
?>
I need to catch/record the time. At the end, the result should shows:
Script take “x” minutes, “x” seconds and “x” milliseconds. Actually I am cloning a virtual machine that takes about 4 to 5 minutes depending upon the size of the disk. So that’s why I need customized output.
Straight off PHP’s documentation:
I’d be extremely concerned about your hardware spec if your PHP script took minutes to execute 😉