3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class ToS{var $message; var $file; function getMessage(){return $this->message;}function __toString(){die("hi there");}} //$e=new exception; $e=unserialize('O:9:"Exception":1:{s:19:"'."\0".'Exception'."\0".'previous";O:3:"ToS":2:{s:7:"message";s:2:"hi";s:4:"file";s:3:"bye"}}'); echo $e;
based on 7uU45
Output for 5.6.21 - 5.6.28, 7.0.6 - 7.2.0
Notice: unserialize(): Error at offset 102 of 104 bytes in /in/IGgbs on line 4
Output for 5.3.18 - 5.6.20, 7.0.0 - 7.0.5
Notice: unserialize(): Error at offset 105 of 104 bytes in /in/IGgbs on line 4