localhost/phpinfo.php is default PHP info path, phpinfo.php is actually a aa file most of the developer used to find out the complete information about the PHP like version what are the library enabled in PHP. Also it help you to find out the root path,Configuration apc, calendar info ,cgi-fcgi ,curl info, date lib info , PHP Variables etc
Here is the phpinfo.php file code
<?php phpinfo(); ?>
Demo localhost/phpinfo.php display