Yes you're able to call the register_shutdown_function to execute twice regardless of the situation.
They will each be executed in the exact order (one after the other) as suggested in the PHP Documentation.
They will each be executed in the exact order (one after the other) as suggested in the PHP Documentation.