Skip to content

Instantly share code, notes, and snippets.

@mbpcoder
Last active August 4, 2022 11:26
Show Gist options
  • Save mbpcoder/ea599f2c1be2e7a5b50873438349f029 to your computer and use it in GitHub Desktop.
Save mbpcoder/ea599f2c1be2e7a5b50873438349f029 to your computer and use it in GitHub Desktop.
Multiple PHP Version in CLI Windows

Multiple PHP Version in CLI Windows

  • Add directory C:\wamp64\bin\php to windows path
  • Download bat files and placed to C:\wamp64\bin\php
@echo off
path=%path%;C:\wamp64\bin\php\php7.4.9
php %*
@echo off
path=%path%;C:\wamp64\bin\php\php8.0.10
php %*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment