Overview – features and usage patterns

In brief

There are two types of interface to run a PHP_CompatInfo (alias PCI) script detection: CLI and web. All PCI features (since 1.7.0) are available on both interface.

It's up to you to choose what is the best usage for you.

Accuracy of detection

PCI may detect without error and with a great precision, any simple PHP scripts that have no switch conditions such as these ones : function_exists or version_compare.

// ...
if (function_exists('debug_backtrace')) {
$backtrace debug_backtrace();
} else {
$backtrace false;

if (
version_compare(phpversion(), '5.0.0''<')) {
// ...

Don't be afraid, PCI can still be use, even if your PHP scripts have these conditions or any others, but you should help it, to adjust the parser accuracy with one or more options. See the parser options reference list for details and advanced detection section.

Getting started (Previous) parse data source with default options (Next)
Last updated: Sun, 17 Jun 2018 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.