To sign out of iCloud on all of your devices at once, you can head to iCloud's website and change your password.
If you purchased a second hand iPhone, you can go for remove iCloud activation lock without password from their account using the following steps: Sign in to iCloud, come with your Apple ID. Go to ...
You can sync contacts to iCloud from any Apple device to access each contact anywhere you can sign in to your iCloud account.