I consider @camelCase good, but you can also consider trying this method. It may suite your need.
Upgrade to PHP7 in XAMPP
Before proceeding further I will recommend to take backup of your XAMPP configuration. After you have made backup below are some steps to use PHP7 with in your XAMPP
- Download PHP7 : Download php7 from php.net website.
If your apache is thread safe then download a thread safe version of PHP7 otherwise download NTS i.e non thread safe version.
Place PHP on appropriate place in your XAMPP : Put your PHP7 in your XAMPP. I usually prefer to to put on location /XAMPP/php7 but you can put as per your need. There is no any restriction for putting your new php version in xampp.
Include PHP7 with your apache : In XAMPP, PHP is configured using apache file path [yourxampp/apache/conf/extra/httpd-xampp.conf]. Please open the file add first change all variable path from php7 directory.
Also do not forget to add php7 module using below code
LoadFile yourxampppath/php7/php7ts.dll
LoadFile yourxampppath/php7/libpq.dll
LoadModule php7_module yourxampppath/php7/php7apache2_4.dll
Make sure to change PHP ini directory for your PHP7
<IfModule php7_module>
PHPINIDir "yourxampppath/php7"
</IfModule>
Chechout www.techflirt.com