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";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 oPOV3
Output for 5.4.45, 5.5.29 - 5.5.35, 5.6.13 - 7.3.0rc4
Notice: unserialize(): Error at offset 134 of 188 bytes in /in/eNca7 on line 4 bool(false)
Output for 4.3.10 - 4.4.9, 5.0.3 - 5.4.44, 5.5.24 - 5.5.28, 5.6.7 - 5.6.12
Notice: unserialize(): Error at offset 135 of 188 bytes in /in/eNca7 on line 4 bool(false)
Output for 5.0.0 - 5.0.2
Notice: unserialize(): Unexpected end of serialized data in /in/eNca7 on line 4 Notice: unserialize(): Error at offset 187 of 188 bytes in /in/eNca7 on line 4 bool(false)
Output for 4.3.2 - 4.3.9
Notice: Unexpected end of serialized data in /in/eNca7 on line 4 Notice: unserialize(): Error at offset 187 of 188 bytes in /in/eNca7 on line 4 bool(false)
Output for 4.3.0 - 4.3.1
Notice: Unexpected end of serialized data in /in/eNca7 on line 4 Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 187 of 188 bytes in /in/eNca7 on line 4 bool(false)