How can var_dump() be used for debugging bitwise operations in PHP?

When debugging bitwise operations in PHP, it can be helpful to use var_dump() to inspect the values of variables involved in the operations. By using var_dump(), you can print out the binary representation of the variables and see how the bitwise operations are manipulating them. This can help you identify any issues or unexpected behavior in your bitwise operations.

$var1 = 5;
$var2 = 3;

$result = $var1 & $var2;

var_dump($var1, $var2, $result);