Revise php version detection. Add ability to enable / disable xdebug.