moved php version check