3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'a:1:{s:8:"post_tag";a:5:{i:460;a:5:{s:11:"wpseo_title";s:8:"demodemo";s:10:"wpseo_desc";s:8:"demodemo";s:13:"wpseo_bctitle";s:8:"demodemo";s:13:"wpseo_noindex";s:7:"default";s:21:"wpseo_sitemap_include";s:1:"-";}i:459;a:5:{s:11:"wpseo_title";s:8:"testtest";s:10:"wpseo_desc";s:8:"testtest";s:13:"wpseo_bctitle";s:8:"testtest";s:13:"wpseo_noindex";s:7:"default";s:21:"wpseo_sitemap_include";s:1:"-";}i:462;a:5:{s:11:"wpseo_title";s:7:"bikey77";s:10:"wpseo_desc";s:7:"bikey77";s:13:"wpseo_bctitle";s:7:"bikey77";s:13:"wpseo_noindex";s:7:"default";s:21:"wpseo_sitemap_include";s:1:"-";}i:463;a:5:{s:11:"wpseo_title";s:7:"dimitra";s:10:"wpseo_desc";s:7:"dimitra";s:13:"wpseo_bctitle";s:7:"dimitra";s:13:"wpseo_noindex";s:7:"default";s:21:"wpseo_sitemap_include";s:1:"-";}i:464;a:5:{s:11:"wpseo_title";s:8:"dimitra1";s:10:"wpseo_desc";s:8:"dimitra1";s:13:"wpseo_bctitle";s:8:"dimitra1";s:13:"wpseo_noindex";s:7:"default";s:21:"wpseo_sitemap_include";s:1:"-";} }}'; $data = unserialize($str); echo count($data['post_tag']);
Output for 8.0.0alpha1 - beta3
Notice: unserialize(): Error at offset 954 of 957 bytes in /in/cmttm on line 7 Warning: Trying to access array offset on value of type bool in /in/cmttm on line 8 Warning: count(): Parameter must be an array or an object that implements Countable in /in/cmttm on line 8 0
Output for 7.4.0 - 7.4.10
Notice: unserialize(): Error at offset 954 of 957 bytes in /in/cmttm on line 7 Notice: Trying to access array offset on value of type bool in /in/cmttm on line 8 Warning: count(): Parameter must be an array or an object that implements Countable in /in/cmttm on line 8 0
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.21
Notice: unserialize(): Error at offset 954 of 957 bytes in /in/cmttm on line 7 Warning: count(): Parameter must be an array or an object that implements Countable in /in/cmttm on line 8 0
Output for 5.6.31 - 5.6.40, 7.0.21 - 7.0.33, 7.1.8 - 7.1.33
Notice: unserialize(): Error at offset 954 of 957 bytes in /in/cmttm on line 7 0
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.30, 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
Notice: unserialize(): Error at offset 955 of 957 bytes in /in/cmttm on line 7 0
Output for 4.3.0 - 4.3.1
Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 955 of 957 bytes in /in/cmttm on line 7 0