client script with latest php version and right return types