This example shows how PHP union types work. The function example accepts either an int or a string as input. When called with 10 (an int), it runs and returns 'Value is: 10'. When called with 'hello' (a string), it runs and returns 'Value is: hello'. But when called with 3.14 (a float), it causes a type error because float is not in the union. The execution table traces each call, showing the parameter type, type check result, action, and output. The variable tracker shows how the input variable changes with each call. Key moments clarify why the error happens and that the function accepts one type per call. The quiz tests understanding of outputs and type checks. The snapshot summarizes union types as a way to accept multiple types safely in PHP functions.