<?php
    
/**
    * o------------------------------------------------------------------------------o
    * | This package is licensed under the Phpguru license 2008. A quick summary is  |
    * | that the code is free to use for non-commercial purposes. For commercial     |
    * | purposes of any kind there is a small license fee to pay. You can read more  |
    * | at:                                                                          |
    * |                  http://www.phpguru.org/static/license.html                  |
    * o------------------------------------------------------------------------------o
    *
    * © Copyright 2008 Richard Heyes
    */

    
require_once('UserAgent.php');

    
$before  microtime();
    
$browser GetUserAgent($ua "Bloglines/3.1 (http://www.bloglines.com; 76 subscribers)");
    
$after   microtime();
    
    
$before = (int)$before substr($beforestrpos(' '$before));
    
$after  = (int)$after substr($afterstrpos(' '$after));

    echo 
'Time taken: ' . ($after $before);

    
pd($ua);
    
pdd($browser);
?>