I had encountered this problem when trying to run a laravel project. Using "Dependency Walker" I was able to discover that there was a missing dll for php, mainly "msvcp140.dll". Copying the dll from C:\windows\system32 and pasting it into the php folder solved the problem.