<?php

// start time
list($usec$sec) = explode(' 'microtime());
$time = ((float)$usec + (float)$sec); 




// EXPERIMENT

$arr range("\x00""\xff");
$arr array_flip($arr);

for (
$i 1e5$i$i--) {
  
$ch '*';
  if (
array_key_exists($ch$arr)) {
    
// ...
  
} else {
    
// ...  
  
}
}




// end time
list($usec$sec) = explode(' 'microtime());
$time = ((float)$usec + (float)$sec) - $time;

echo 
'takes '$time'sec';