10     return PHP_SAPI == 
'cli';
    17     return strncasecmp(PHP_OS,
'Win',3) == 0;
    29     for($i = 1; $i < $argc; $i++){
    30       list($key,$value) = array_merge(explode(
'=',$argv[$i],2),[
true]);
    31       if(array_key_exists($key,$args)){
    32         if(!is_array($args[$key])) $args[$key] = [$args[$key]];
    33         $args[$key][] = $value;
    35       else $args[$key] = $value;
    45     return version_compare(PHP_VERSION,$version,
'>=');
    52     return \Rsi\Number::shorthandBytes(ini_get(
'memory_limit'));
    60     return is_array($value) ? !$value : !strlen($value);
 static version($version)
Check PHP version. 
 
static nothing($value)
Check if a value is empty. 
 
static commandLine()
Check if PHP is run from the command line. 
 
static windows()
Check wether we are running on a Windows machine. 
 
static memoryLimit()
Script memory limit. 
 
static parseArgs()
Simple command line argument parser.