3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo $e = unserialize(serialize(new Exception()));
Output for 7.0.10 - 7.2.0
Exception in /in/ln14Y:1 Stack trace: #0 {main}
Output for 7.0.0 - 7.0.9
Notice: Undefined property: Exception::$previous in /in/ln14Y on line 1 Exception in /in/ln14Y:1 Stack trace: #0 {main}
Output for 5.0.0 - 5.0.2, 5.0.5 - 5.4.43, 5.5.0 - 5.5.27, 5.6.0 - 5.6.11, 5.6.25 - 5.6.28
exception 'Exception' in /in/ln14Y:1 Stack trace: #0 {main}
Output for 5.4.44 - 5.4.45, 5.5.28 - 5.5.38, 5.6.12 - 5.6.24
Notice: Undefined property: Exception::$previous in /in/ln14Y on line 1 exception 'Exception' in /in/ln14Y:1 Stack trace: #0 {main}
Output for 5.0.3 - 5.0.4
exception 'Exception' in /in/ln14Y:1 Stack trace: #0 /in/ln14Y(1): unknown() #1 {main}
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: exception in /in/ln14Y on line 1
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: exception in /in/ln14Y on line 1