3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $value = 'C:+8:"stdClass":0:{}'; $obj = unserialize($value); $ret = (bool)preg_match('/(^|;|{|})O:\+?[0-9]+:"/', $value); var_dump($value, $ret, $obj);
based on gpQLi
Output for 7.2.0
Notice: unserialize(): Error at offset 0 of 20 bytes in /in/FtiRJ on line 4 string(20) "C:+8:"stdClass":0:{}" bool(false) bool(false)
Output for 5.3.19 - 7.1.10
Warning: Class stdClass has no unserializer in /in/FtiRJ on line 4 string(20) "C:+8:"stdClass":0:{}" bool(false) object(stdClass)#1 (0) { }