You can remember the meaning of 开玩笑 with this easy mnemonic:
Stop playing jokes on me, why do you keep opening (开) my antique (玩) boxes and laughing (笑) at them?
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.