Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@weaverryan
Created November 25, 2010 19:04
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 weaverryan/715793 to your computer and use it in GitHub Desktop.
Save weaverryan/715793 to your computer and use it in GitHub Desktop.
<?php
$start = microtime(true);
$limit = 10000;
for ($i = 0; $i < $limit; $i++)
{
in_array('GET', array('GET', 'HEAD'));
in_array('PUT', array('GET', 'HEAD'));
}
var_dump(microtime(true) - $start);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment