added php version check