Building from source
This chapter teaches how to compile PHP from sources on Windows, using Microsoft's tools. To compile PHP with cygwin, please refer to Installation auf Unix-Systemen.
See the Wiki documentation at: » https://wiki.php.net/internals/windows/stepbystepbuild