Skip to content

Instantly share code, notes, and snippets.

@weaverryan
Created November 25, 2010 19:03
Show Gist options
  • 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