Test your applications
Test your extensions
It is really easy!
Full Vagrant Debian Dev Environment
Or if you prefer Docker:
Install Vagrant and Virtualbox
Then:
$ git clone https://github.com/rlerdorf/php7dev.git
$ cd php7dev
$ vagrant up
... (takes a bit - it is downloading 1.5G)
$ vagrant ssh
It will NAT, DHCP and also has a fixed address of 192.168.7.7
http://192.168.7.7/ will show you the PHP 7 phpinfo() page
Now you have a working Rasmus-approved dev box on your network
Switching PHP versions is trivial
vagrant@php7dev:~$ newphp 56
Activating PHP 5.6.6-dev and restarting php-fpm
vagrant@php7dev:~$ newphp 7 debug
Activating PHP 7.0.0-dev and restarting php-fpm
24 pre-compiled versions
/usr/local/php53 /usr/local/php55 /usr/local/php70
/usr/local/php53-debug /usr/local/php55-debug /usr/local/php70-debug
/usr/local/php53-debug-zts /usr/local/php55-debug-zts /usr/local/php70-debug-zts
/usr/local/php53-zts /usr/local/php55-zts /usr/local/php70-zts
/usr/local/php54 /usr/local/php56 /usr/local/php71
/usr/local/php54-debug /usr/local/php56-debug /usr/local/php71-debug
/usr/local/php54-debug-zts /usr/local/php56-debug-zts /usr/local/php71-debug-zts
/usr/local/php54-zts /usr/local/php56-zts /usr/local/php71-zts
Build any version
$ makephp 7
Build log in /tmp/build.log
Building PHP 7.0
configuring...
compiling...
installing...
done
Building PHP 7.0-debug
configuring...
compiling...
installing...
done
or manually
$ cd php-src
$ git checkout PHP-5.6
$ git pull -r
$ make distclean
$ ./buildconf -f
$ ./cn56
$ make
$ sudo make install