<?php

if ( ! defined( 'ABSPATH' ) ) exit;

/*
  Check for PHP CLI results
*/
if (defined('STDIN') || (defined('PHP_SAPI') && PHP_SAPI == 'cli') || php_sapi_name() === 'cli') {

  // PHP CLI Version
  echo @phpversion() . "\n";

  // PHP CLI Memory limit for PHP CLI
  echo @ini_get('memory_limit') . "\n";

  // PHP CLI Max execution time
  echo @ini_get('max_execution_time') . "\n";

  // Change PHP_INI values
  @ini_set('memory_limit', '512M');
  @ini_set('max_execution_time', '0');

  // Modified PHP CLI Memory limit for PHP CLI
  echo @ini_get('memory_limit') . "\n";

  // Modified PHP CLI Max execution time
  echo @ini_get('max_execution_time');

}
