Skip to content

Instantly share code, notes, and snippets.

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