public function run()
    {
        $response = array();

        if (version_compare(PHP_VERSION, self::PHP_MIN, '<')) {
            $response['php_version'] = false;
        } else {
            $response['php_version'] = PHP_VERSION;
        }

        $response['php_ini'] = php_ini_loaded_file();

        $extensions = array(
            'date',
            'json',
            'pcre',
            'phar',
            'reflection',
            'spl',
            'tokenizer',
        );

        foreach ($extensions as $extension) {
            $response[$extension . '_loaded'] = extension_loaded($extension);
        }

        if (extension_loaded('xdebug')) {
            $response['xdebug_loaded']          = true;
            $response['xdebug_profiler_enable'] = ini_get('xdebug.profiler_enable');
        }

        return $response;
    }
public function run()
    {
        $response = array();

        if (version_compare(PHP_VERSION, self::PHP_MIN, '<')) {
            $response['php_version'] = false;
        } else {
            $response['php_version'] = PHP_VERSION;
        }

        $response['php_ini'] = php_ini_loaded_file();

        $extensions = array(
            'date',
            'json',
            'pcre',
            'phar',
            'reflection',
            'spl',
            'tokenizer',
        );

        foreach ($extensions as $extension) {
            $response[$extension . '_loaded'] = extension_loaded($extension);
        }

        if (extension_loaded('xdebug')) {
            $response['xdebug_loaded']          = true;
            $response['xdebug_profiler_enable'] = ini_get('xdebug.profiler_enable');
        }

        return $response;
    }
public function run ( ) { $ response = array ( ) ; if ( version_compare ( PHP_VERSION , self :: PHP_MIN , '<' ) ) { $ response [ 'php_version' ] = false ; } else { $ response [ 'php_version' ] = PHP_VERSION ; } $ response [ 'php_ini' ] = php_ini_loaded_file ( ) ; $ extensions = array ( 'date' , 'json' , 'pcre' , 'phar' , 'reflection' , 'spl' , 'tokenizer' , ) ; foreach ( $ extensions as $ extension ) { $ response [ $ extension . '_loaded' ] = extension_loaded ( $ extension ) ; } if ( extension_loaded ( 'xdebug' ) ) { $ response [ 'xdebug_loaded' ] = true ; $ response [ 'xdebug_profiler_enable' ] = ini_get ( 'xdebug.profiler_enable' ) ; } return $ response ; }
Diagnoses the system to identify common errors.

@return array
Diagnoses the system to identify common errors .