3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "O:9:\"Exception\":1:{s:10:\"\0*\0message\";s:29:\"<script>alert(/xss/)</script>\";}"; $obj1 = unserialize($str); ( string )$obj1;
based on jURU8
Output for 5.0.0 - 5.4.43, 5.5.0 - 5.5.27, 5.6.0 - 5.6.11, 5.6.25 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.10 - 7.1.0
Output for 5.4.44 - 5.4.45, 5.5.28 - 5.5.38, 5.6.12 - 5.6.24, 7.0.0 - 7.0.9
Notice: Undefined property: Exception::$previous in /in/RQ9dC on line 5
Output for 4.3.0 - 4.4.9
Notice: Object to string conversion in /in/RQ9dC on line 5