PHP 5.6 not used by Apache instead it uses PHP 5.5
I found out that I have the following files inside /etc/apache2/mods-available/
php5.6.conf
php5.6.load
php5.conf
php5.load
php5filter.conf
php5filter.load
php7.0.conf
php7.0.load
so what I did is the following
sudo a2dismod php5.load
and then
sudo a2enmod php5.6.load
that switched the version the apache was using to 5.6 and voila problem solved : )