Yep - in reality it's the number/code of the HMRC (tax authority) form you get when you leave a job.
Thanks... so kind of like how we would say 'pink slip' in the US.
A P45 is the official document you receive when you leave employment (fired or not), it isn’t slang for anything though you may be threatened with a P45
"The term is used in British slang as a metonym for termination of employment." [1]