add a separate check for php version because of T_PAAMAYIM_NEKUDOTAYIM on 5.2