Comment afficher un phpinfo() en ligne de commande

Lors d’installations ou de configurations de serveurs, on recherche souvent l’une ou l’autre informations sur les paramètres de PHP. Deux choix s’offrent à vous :
- faire un fichier php contenant la directive phpinfo() et l’afficher dans un navigateur,
- afficher le résultat de phpinfo() en ligne de commande.
Il existe une commande simple en php pour pouvoir afficher ces informations sur votre console.