Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
$start = microtime(true);
$limit = 10000;
for ($i = 0; $i < $limit; $i++)
{
preg_match('#^(GET|HEAD)$#x', 'GET');
preg_match('#^(GET|HEAD)$#x', 'PUT');
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
You can’t perform that action at this time.