Depends what is the weapon and can i surprise him. Also is the attacker some roid raged 140kg bodybuilder(certain death) or 60kg junkie(basically only a warm up). Is there anything around that can be used as a make shift weapon.
And finally, how hard it is to get my phone from the pocket vs. all the other options.