Create Variable with XPHP?

Is it possible to create/set a variable using just XPHP? I want to add some XPHP logic that would set a variable that I could then use in a widget format arg. I know I could do this with a custom module, but I would like to avoid that for this simple use case.