PHP 7.1 with imagick and ms sql (debian jessie compatible, mx 16)

Remove your PHP before, if needed, for sure.
## debian
sudo echo "deb https://packages.sury.org/php/ jessie main" > /etc/apt/sources.list.d/php71.list 
## ubuntu
sudo add-apt-repository -y ppa:ondrej/php

sudo apt-get update
sudo apt-get install php7.1 php7.1-curl php7.1-igbinary php7.1-intl php7.1-mcrypt php7.1-readline php7.1-xml php7.1-cli php7.1-fpm php7.1-imagick php7.1-json php7.1-mysql php7.1-redis php7.1-zip php7.1-common php7.1-gd php7.1-imap php7.1-mbstring php7.1-opcache php7.1-sybase
That is fine working set for Laravel 5.5