Skip to content

Instantly share code, notes, and snippets.

@dajve
Created April 22, 2018 20:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dajve/ec644147e0e2b811a2aeaa49ebac4331 to your computer and use it in GitHub Desktop.
Save dajve/ec644147e0e2b811a2aeaa49ebac4331 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("CONCAT (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