!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/gwp.picotech.app/public_html/vendor/laravel/framework/src/Illuminate/Support/   drwxr-xr-x
Free 28.64 GB of 117.98 GB (24.28%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Benchmark.php (1.96 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Illuminate\Support;

use 
Closure;

class 
Benchmark
{
    
/**
     * Measure a callable or array of callables over the given number of iterations.
     *
     * @param  \Closure|array  $benchmarkables
     * @param  int  $iterations
     * @return array|float
     */
    
public static function measure(Closure|array $benchmarkablesint $iterations 1): array|float
    
{
        return 
Collection::wrap($benchmarkables)->map(function ($callback) use ($iterations) {
            return 
Collection::range(1$iterations)->map(function () use ($callback) {
                
gc_collect_cycles();

                
$start hrtime(true);

                
$callback();

                return (
hrtime(true) - $start) / 1_000_000;
            })->
average();
        })->
when(
            
$benchmarkables instanceof Closure,
            fn (
$c) => $c->first(),
            fn (
$c) => $c->all(),
        );
    }

    
/**
     * Measure a callable once and return the result and duration in milliseconds.
     *
     * @template TReturn of mixed
     *
     * @param  (callable(): TReturn)  $callback
     * @return array{0: TReturn, 1: float}
     */
    
public static function value(callable $callback): array
    {
        
gc_collect_cycles();

        
$start hrtime(true);

        
$result $callback();

        return [
$result, (hrtime(true) - $start) / 1_000_000];
    }

    
/**
     * Measure a callable or array of callables over the given number of iterations, then dump and die.
     *
     * @param  \Closure|array  $benchmarkables
     * @param  int  $iterations
     * @return never
     */
    
public static function dd(Closure|array $benchmarkablesint $iterations 1): never
    
{
        
$result = (new Collection(static::measure(Arr::wrap($benchmarkables), $iterations)))
            ->
map(fn ($average) => number_format($average3).'ms')
            ->
when($benchmarkables instanceof Closure, fn ($c) => $c->first(), fn ($c) => $c->all());

        
dd($result);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0041 ]--