3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $e = unserialize('O:9:"Exception":7:{s:17:"'."\0".'Exception'."\0".'string";s:1:"a";s:7:"'."\0".'*'."\0".'code";i:0;s:7:"'."\0".'*'."\0".'file";R:1;s:7:"'."\0".'*'."\0".'line";i:1337;s:16:"'."\0".'Exception'."\0".'trace";a:0:{}s:19:"'."\0".'Exception'."\0".'previous";i:10;s:10:"'."\0".'*'."\0".'message";N;}'); //$e = unserialize('O:9:"Exception":7:{s:17:"'."\0".'Exception'."\0".'string";s:1:"a";s:7:"'."\0".'*'."\0".'code";i:0;s:7:"'."\0".'*'."\0".'file";i:1;s:7:"'."\0".'*'."\0".'line";i:1337;s:16:"'."\0".'Exception'."\0".'trace";a:0:{}s:19:"'."\0".'Exception'."\0".'previous";i:10;s:10:"'."\0".'*'."\0".'message";N;}'); var_dump($e."");
based on UoAuT
Output for 7.0.20 - 7.3.0rc4
Notice: Undefined property: Exception::$file in /in/lKANW on line 7 Notice: Undefined property: Exception::$previous in /in/lKANW on line 7 Notice: Undefined property: Exception::$previous in /in/lKANW on line 7 string(41) "Exception in :1337 Stack trace: #0 {main}"
Output for 7.0.0 - 7.0.6
Notice: Undefined property: Exception::$message in /in/lKANW on line 7 Notice: Undefined property: Exception::$file in /in/lKANW on line 7 Notice: Undefined property: Exception::$previous in /in/lKANW on line 7 string(41) "Exception in :1337 Stack trace: #0 {main}"
Output for 5.6.28
Notice: Undefined property: Exception::$file in /in/lKANW on line 7 string(53) "exception 'Exception' in :1337 Stack trace: #0 {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::$message in /in/lKANW on line 7 Notice: Undefined property: Exception::$file in /in/lKANW on line 7 Notice: Undefined property: Exception::$previous in /in/lKANW on line 7 string(53) "exception 'Exception' in :1337 Stack trace: #0 {main}"
Output for 5.2.0 - 5.4.43, 5.5.24 - 5.5.27, 5.6.8 - 5.6.11

Process exited with code 139.
Output for 5.0.0 - 5.1.6
string(12) "Object id #1"
Output for 4.3.0 - 4.4.9
string(6) "Object"