public static function callFast(callable $callable, $args=null)
    {

        if (!is_array($args)) {
            return call_user_func($callable, $args === null ? [] : [$args]);
        }

        switch (count($args)) {
            case 0:
                return call_user_func($callable);
            case 1:
                return call_user_func($callable, $args[0]);
            case 2:
                return call_user_func($callable, $args[0], $args[1]);
            case 3:
                return call_user_func($callable, $args[0], $args[1], $args[2]);
            case 4:
                return call_user_func($callable, $args[0], $args[1], $args[2], $args[3]);
        }

        return call_user_func_array($callable, $args);
    }
public static function callFast(callable $callable, $args=null)
    {

        if (!is_array($args)) {
            return call_user_func($callable, $args === null ? [] : [$args]);
        }

        switch (count($args)) {
            case 0:
                return call_user_func($callable);
            case 1:
                return call_user_func($callable, $args[0]);
            case 2:
                return call_user_func($callable, $args[0], $args[1]);
            case 3:
                return call_user_func($callable, $args[0], $args[1], $args[2]);
            case 4:
                return call_user_func($callable, $args[0], $args[1], $args[2], $args[3]);
        }

        return call_user_func_array($callable, $args);
    }
public static function callFast ( callable $ callable , $ args = null ) { if ( ! is_array ( $ args ) ) { return call_user_func ( $ callable , $ args === null ? [ ] : [ $ args ] ) ; } switch ( count ( $ args ) ) { case 0 : return call_user_func ( $ callable ) ; case 1 : return call_user_func ( $ callable , $ args [ 0 ] ) ; case 2 : return call_user_func ( $ callable , $ args [ 0 ] , $ args [ 1 ] ) ; case 3 : return call_user_func ( $ callable , $ args [ 0 ] , $ args [ 1 ] , $ args [ 2 ] ) ; case 4 : return call_user_func ( $ callable , $ args [ 0 ] , $ args [ 1 ] , $ args [ 2 ] , $ args [ 3 ] ) ; } return call_user_func_array ( $ callable , $ args ) ; }
Just call a callable without parsing any lambdas

@param callable $callable
@param mixed    $args (optional)

@return mixed
Just call a callable without parsing any lambdas