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.3.0 - 8.3.6
Warning: unserialize(): Error at offset 25 of 962 bytes in /in/bTE8M on line 12 Warning: Trying to access array offset on false in /in/bTE8M on line 13 Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /in/bTE8M:13 Stack trace: #0 {main} thrown in /in/bTE8M on line 13
Process exited with code 255.
Output for 8.0.10 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18
Notice: unserialize(): Error at offset 25 of 962 bytes in /in/bTE8M on line 12 Warning: Trying to access array offset on value of type bool in /in/bTE8M on line 13 Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /in/bTE8M:13 Stack trace: #0 {main} thrown in /in/bTE8M on line 13
Process exited with code 255.
Output for 8.0.0 - 8.0.9
Notice: unserialize(): Error at offset 25 of 962 bytes in /in/bTE8M on line 12 Warning: Trying to access array offset on value of type bool in /in/bTE8M on line 13 Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, null given in /in/bTE8M:13 Stack trace: #0 {main} thrown in /in/bTE8M on line 13
Process exited with code 255.
Output for 7.4.0 - 7.4.25, 7.4.27 - 7.4.33
Notice: unserialize(): Error at offset 25 of 962 bytes in /in/bTE8M on line 12 Notice: Trying to access array offset on value of type bool in /in/bTE8M on line 13 Warning: count(): Parameter must be an array or an object that implements Countable in /in/bTE8M on line 13 0
Output for 7.3.32 - 7.3.33, 7.4.26
Warning: count(): Parameter must be an array or an object that implements Countable in /in/bTE8M on line 13 0
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.31
Notice: unserialize(): Error at offset 25 of 962 bytes in /in/bTE8M on line 12 Warning: count(): Parameter must be an array or an object that implements Countable in /in/bTE8M on line 13 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.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33
Notice: unserialize(): Error at offset 25 of 962 bytes in /in/bTE8M on line 12 0
Output for 4.3.0 - 4.3.1
Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 25 of 962 bytes in /in/bTE8M on line 12 0

preferences:
253.32 ms | 401 KiB | 359 Q