PHP Classes

PHPInfo Compare Online: Parse and compare PHP configuration versions

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 184 All time: 8,667 This week: 46Up
Version License PHP version Categories
phpinfoparser 1.0.1Freely Distributable5XML, PHP 5, System information, Tools, C..., P...


This package can be used to parse and compare PHP configuration versions.

It can capture the HTML output of the phpinfo() command to parse it and extract the values of the PHP configuration.

The package can export the extracted configuration values.

It can also compare two versions of the PHP configuration to display om a Web page the differences in terms of configuration values and available modules.

Innovation Award
PHP Programming Innovation award nominee
March 2020
Number 11
phpinfo() is a PHP function that allows users to see details of the current configuration of PHP.

This package can extract the information of the phpinfo() function, so it can be exported and compared with the configuration of other environments. That is useful to verify if two environments on which PHP is running are using the same configuration.

Manuel Lemos
Picture of Stefan Kientzler
  Performance   Level  
Name: Stefan Kientzler is available for providing paid consulting. Contact Stefan Kientzler .
Classes: 19 packages by
Country: Germany Germany
Age: 56
All time rank: 72246 in Germany Germany
Week rank: 24 Up1 in Germany Germany Up
Innovation award
Innovation award
Nominee: 11x

Winner: 6x


require_once 'lib/Helper/PHPInfoParser.php';


// create object
$oInfo = new PHPInfoParser();

// parse local info and save to XML-File

header('Content-Type: text/xml');
    // compare local phpinfo with saved info-file
    echo $oInfo->reportDiff(PHPInfoParser::REPORT_HTML);
    // compare two saved info-files
    $oInfo->compareFiles('phpinfoCompare1.xml', 'phpinfoCompare2.xml');
    echo $oInfo->reportDiff(PHPInfoParser::REPORT_HTML);

  • PHPSysInfoParser.png
  Files folder image Files  
File Role Description
Files folder imagelib (1 directory)
Accessible without login Plain text file PHPInfoParserTest.php Example Example php-script

  Files folder image Files  /  lib  
File Role Description
Files folder imageHelper (2 files)

  Files folder image Files  /  lib  /  Helper  
File Role Description
  Accessible without login Plain text file ExtDOMDocument.php Aux. Helper class for easier XML access
  Plain text file PHPInfoParser.php Class parse/compare phpinf()

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:8,667
This week:46Up