Altered Carbon, Set in a future where consciousness is digitized and stored, a prisoner returns to life in a new body and must solve a mind-bending murder to win his freedom.
Agents of S.H.I.E.L.D., the third arc of the 4th season focuses on the characters trapped within a simulated reality.
Arrowverse
*"Invasion!" a crossover of Supergirl, The Flash, Arrow and Legends of Tomorrow.
Ascension - A Netflix mini-series about 600 people who believe they live on a spaceship halfway to Proxima Centauri, but who are actually trapped in a simulated environment on Earth.
Babylon 5, part of the episode "The Deconstruction of Falling Stars" features a holographic simulation of the Babylon station, including initially faithful reproductions of the key characters, their knowledge and personalities but with the intention to recreate falsified versions for propaganda purposes.
Black Mirror
* "White Bear"
* "White Christmas"
* "Playtest"
* "San Junipero"
* "USS Callister"
* "Hang the DJ"
Doctor Who episode "The Deadly Assassin", written by Robert Holmes.
Red Dwarf episodes "Better Than Life", "Back to Reality", "Gunmen of the Apocalypse", "Stoke Me a Clipper", "Blue", "Beyond a Joke" and "Back in the Red" by Rob Grant and/or Doug Naylor with Paul Alexander, Kim Fuller and Robert Llewellyn all feature some sort of artificial reality or "total immersion video game".
'
* Episode "Future Imperfect" : During an away mission, Commander William Riker loses consciousness; he awakes sixteen years in the future with that period of his memory lost; he is now the new Captain of the Enterprise, is widowed and has a son named Jean-Luc ; this eventually turns out to be a simulated reality.
* Episode "The Inner Light |The Inner Light" : Jean-Luc Picard is rendered unconscious by a probe of unknown origin. Within the span of 25 minutes, he lives the life of a scientist named Kamin from the doomed planet of Kataan whose sun had gone nova1000 years before. The probe contains the stored memories of Kataan's civilization which Picard relives as Kamin.
' episodes "The Cage" and "The Menagerie |The Menagerie", the unaired pilot and later episode.
: Several episodes took place in the holodeck, including "Fair Haven |Fair Haven", "Spirit Folk", the two part episode "The Killing Game |The Killing Game" and "Projections".
Stargate SG-1 episode "The Gamekeeper"
Supergirl episode "For the Girl Who Has Everything", based on the Superman story "For the Man Who Has Everything", which was written by Alan Moore and Dave Gibbons for Superman Annual #11 published by DC Comics in 1985.
The Twilight Zone, and its later revivals, feature a number of episodes involving false or simulated realities of some sort. Examples include "Where Is Everybody?" and "Dreams for Sale".
The X-Files features a number of episodes involving simulated realities of some sort, such as "Kill Switch" and "First Person Shooter", both written by William Gibson and Tom Maddox.