Thanks @jota. As you are saying I launched a new Lamps instance with php5.6.
Now I have another problem, after setting a custom application and a virtual host I get
You don't have permission to access / on this server.
I tried to change the owner to daemon:daemon and chmod 755 but nothing change.
Could you help me with this?