I installed a new local server, when I installed php5 package with apt-get install php5 it got the version 5.6.
apt-get install php5
My production server is still with php 5
For PHP 5.6
sudo add-apt-repository ppa:ondrej/php5-5.6
For PHP 5.5
sudo add-apt-repository ppa:ondrej/php5
Reference