Skip to content

Instantly share code, notes, and snippets.

@dajve
Created April 22, 2018 20:37
Show Gist options
  • Save dajve/82cbc6b6b68ca0468f1e179503a86150 to your computer and use it in GitHub Desktop.
Save dajve/82cbc6b6b68ca0468f1e179503a86150 to your computer and use it in GitHub Desktop.
<?php
$in = 100; $out = 200;
$s = microtime(true);
for ($i=0; $i<1000000; $i++) {
echo $in,'<br>',$out;
}
$e = microtime(true);
echo PHP_EOL.PHP_EOL.sprintf("COMMA (1,000,000) : %s", number_format($e-$s, 6)).PHP_EOL;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment