3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = "lol"; $var1 = "a:1:{i:0;a:1:{s:6:'Marque';s:6:'Anaïs';}}"; if(isSerialized($var1) === true){ unserialize($var1); echo "OK"; } else { echo "KO"; } function isSerialized($str) { return ($str == serialize(false) || @unserialize($str) !== false); }
based on ZY7ad
Output for 4.3.0 - 7.2.0
KO