#05AB1E, 16 bytes
05AB1E, 16 bytes
Uses the fact that 05AB1E has a constant predefined to "()<>[]{}"
and isn't affected the visually reversion.
Code:
,q‡"}{][><)("užR
Explanation:
, # Pop and print the input.
q # Quit.
‡"}{][><)("užR # This part is ignored.
Reversed:
Ržu"()<>[]{}"‡q,
Explanation:
R # Reverse the input.
žu # Short for "()<>[]{}".
"()<>[]{}" # Push this string.
‡ # Transliterate (no-op, since everything is transliterated to itself).
q # Quit and implicitly print.
, # This part is ignored.
Visually reversed:
Ržu")(><][}{"‡q,
Explanation:
R # Reverse the input.
žu # Short for "()<>[]{}".
")(><][}{" # Push this string.
‡ # Transliterate (giving the visually reversed string).
q # Quit and implicitly print.
, # This part is ignored.
Uses CP-1252 encoding.