3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class ToS{function __toString(){die("hi");}} $e=new exception; $e=unserialize('O:9:"Exception":7:{s:7:"message";s:0:"";s:15:"Exceptionstring";s:0:"";s:4:"code";i:0;s:4:"file";s:9:"/in/1Vigq";s:4:"line";i:2;s:14:"Exceptiontrace";a:0:{}s:8:"previous";O:3:"ToS":0:{}}'); echo $e;
based on Q5PcK
Output for 7.2.0
Notice: Undefined property: Exception::$previous in /in/DosaF on line 5 Notice: Undefined property: Exception::$previous in /in/DosaF on line 5 Exception in /in/1Vigq:2 Stack trace: #0 /in/DosaF(4): unserialize('O:9:"Exception"...') #1 {main}
Output for 7.0.20 - 7.1.10
Exception in /in/DosaF:4 Stack trace: #0 /in/DosaF(4): unserialize('O:9:"Exception"...') #1 {main}
Output for 7.0.0 - 7.0.6
Notice: Undefined property: Exception::$previous in /in/DosaF on line 5 Exception in /in/DosaF:4 Stack trace: #0 /in/DosaF(4): unserialize('O:9:"Exception"...') #1 {main}
Output for 5.3.18 - 5.4.43, 5.5.24 - 5.5.27, 5.6.7 - 5.6.11, 5.6.28
exception 'Exception' in /in/DosaF:4 Stack trace: #0 /in/DosaF(4): unserialize('O:9:"Exception"...') #1 {main}
Output for 5.4.44 - 5.4.45, 5.5.28 - 5.5.35, 5.6.12 - 5.6.21
Notice: Undefined property: Exception::$previous in /in/DosaF on line 5 exception 'Exception' in /in/DosaF:4 Stack trace: #0 /in/DosaF(4): unserialize('O:9:"Exception"...') #1 {main}