Skip to content

Instantly share code, notes, and snippets.

@elieandraos
Created June 19, 2013 10:13
Show Gist options
  • Save elieandraos/5813249 to your computer and use it in GitHub Desktop.
Save elieandraos/5813249 to your computer and use it in GitHub Desktop.
Benchmark a php script
<?php
$x = microtime(true);
/* ... Your script goes here ... */
$temp = microtime(true) - $x;
echo "<p> execution time: ".$temp." seconds";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment