3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = "lol"; if(isSerialized($var) === true){ unserialize($var); } else { echo "KO"; } function isSerialized($str) { return ($str == serialize(false) || @unserialize($str) !== false); }
based on ASgi1
Output for 4.3.0 - 7.2.0
KO