just for info ... this took me a long time ...
PHP 7.1.1 version
PHP SQL SVR 4.0 the driver was not loaded correctly.
The official release is not supporting PHP7.1 yet, but there is a preview build that can be loaded by PHP7.1. see this bug report: https://github.com/Microsoft/msphpsql/issues/193