Beispiel #1
0
<?php

class script
{
    static function main()
    {
        $start = self::microtime();
        sleep(1);
        echo "Paremetr test: " . @$_REQUEST['test'];
        $end = self::microtime();
        echo "<hr> Program is works " . sprintf("%.2f", $end - $start) . " c";
    }
    private static function microtime()
    {
        $t = explode(" ", microtime());
        return $t[0] + $t[1];
    }
}
if (!defined("DONT_CALL_MAIN")) {
    script::main();
}