Table of Contents

Php - Version

About

There is three component that identifies a php version.

Steps

Get the version

php -version
PHP 5.3.3 (cli) (built: Mar 22 2017 12:27:09)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

Get the thread safety

NTS means non thread safe.

You get this information with the Php - PhpInfo information (php -i gives you Php - PhpInfo information at the command line).

php -i | grep -i 'Php Extension Build'
PHP Extension Build => API20090626,NTS

php -i | grep Thread
Thread Safety => disabled

Get the visual studio compiler version

The compiler version must be the same than the Web Server compiler version.

If you are using Apache, check in which version it was compiled and take the same php compiler version.

For instance, VC6 Versions are compiled with the legacy Visual Studio 6 compiler.

It seems that you can get this information in the build.

php -i | grep -i 'Php Extension Build'
PHP Extension Build => API20090626,NTS

PHP Extension Build => API20090626,NTS,VC6