Retrieve extension version in php
At the command line, where extension is the extension name.
php --re extension | head -1
If unsure of the extension name, list extensions with php -m
.
http://php.net/manual/en/reflectionextension.getversion.php
<?php $ext = new ReflectionExtension('mysqli'); var_dump($ext->getVersion());?>