'Version', Kernel::VERSION
],
['Long-Term Support', 4 === Kernel::MINOR_VERSION ? 'Yes' : 'No'
],
['End of maintenance', Kernel::END_OF_MAINTENANCE.
(self::
isExpired(Kernel::END_OF_MAINTENANCE
) ? ' <error>Expired</>' : ' (<comment>'.self::
daysBeforeExpiration(Kernel::END_OF_MAINTENANCE
).'</>)'
)],
['End of life', Kernel::END_OF_LIFE.
(self::
isExpired(Kernel::END_OF_LIFE
) ? ' <error>Expired</>' : ' (<comment>'.self::
daysBeforeExpiration(Kernel::END_OF_LIFE
).'</>)'
)],
new TableSeparator(),
['<info>Kernel</>'
],
new TableSeparator(),
['Type',
$kernel::
class],
['Environment',
$kernel->
getEnvironment()],
['Debug',
$kernel->
isDebug() ? 'true' : 'false'
],
['Charset',
$kernel->
getCharset()],
['Cache directory', self::
formatPath($kernel->
getCacheDir(),
$kernel->
getProjectDir()).' (<comment>'.self::
formatFileSize($kernel->
getCacheDir()).'</>)'
],
['Build directory', self::
formatPath($buildDir,
$kernel->
getProjectDir()).' (<comment>'.self::
formatFileSize($buildDir).'</>)'
],
['Log directory', self::
formatPath($kernel->
getLogDir(),
$kernel->
getProjectDir()).' (<comment>'.self::
formatFileSize($kernel->
getLogDir()).'</>)'
],
new TableSeparator(),
['<info>PHP</>'
],
new TableSeparator(),
['Version', \PHP_VERSION
],
['Architecture',
(\PHP_INT_SIZE * 8
).' bits'
],
['Intl locale',
class_exists(\Locale::
class, false
) && \Locale::
getDefault() ? \Locale::
getDefault() : 'n/a'
],
['Timezone',
date_default_timezone_get().' (<comment>'.
(new \
DateTimeImmutable())->
format(\DateTimeInterface::W3C
).'</>)'
],
['OPcache', \
extension_loaded('Zend OPcache'
) &&
filter_var(\
ini_get('opcache.enable'
), \FILTER_VALIDATE_BOOL
) ? 'true' : 'false'
],
['APCu', \
extension_loaded('apcu'
) &&
filter_var(\
ini_get('apc.enabled'
), \FILTER_VALIDATE_BOOL
) ? 'true' : 'false'
],
[