3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $message = 'a:18:{s:17:"geoplugin_request";s:12:"213.61.140.2";s:16:"geoplugin_status";i:200;s:16:"geoplugin_credit";s:145:"Some of the returned data includes GeoLite data created by MaxMind, available from <a href=\'http://www.maxmind.com\'>http://www.maxmind.com</a>.";s:14:"geoplugin_city";s:7:"Hamburg";s:16:"geoplugin_region";s:7:"Hamburg";s:18:"geoplugin_areaCode";s:1:"0";s:17:"geoplugin_dmaCode";s:1:"0";s:21:"geoplugin_countryCode";s:2:"DE";s:21:"geoplugin_countryName";s:7:"Germany";s:23:"geoplugin_continentCode";s:2:"EU";s:18:"geoplugin_latitude";s:9:"53.549999";s:19:"geoplugin_longitude";s:2:"10";s:20:"geoplugin_regionCode";s:2:"04";s:20:"geoplugin_regionName";s:7:"Hamburg";s:22:"geoplugin_currencyCode";s:3:"EUR";s:24:"geoplugin_currencySymbol";s:7:"&#8364;";s:29:"geoplugin_currencySymbol_UTF8";s:3:"€";s:27:"geoplugin_currencyConverter";s:6:"0.7578";}'; $uns = unserialize($message); var_dump($uns);
Output for 4.3.10 - 4.4.9, 5.0.3 - 5.6.28, 7.0.0 - 7.1.0
Notice: unserialize(): Error at offset 257 of 858 bytes in /in/FM7qL on line 7 bool(false)
Output for hhvm-3.10.0 - 3.12.0
Notice: Unable to unserialize: [a:18:{s:17:"geoplugin_request";s:12:"213.61.140.2";s:16:"geoplugin_status";i:200;s:16:"geoplugin_credit";s:145:"Some of the returned data includes GeoLite data created by MaxMind, available from <a href='http://www.maxmind.com'>http://www.maxmind.com</a>.";s:14:"geoplugin_city";s:7:"Hamburg";s:16:"geoplugin_region";s:7:"Hamburg";s:18:"geoplugin_areaCode";s:1:"0";s:17:"geoplugin_dmaCode";s:1:"0";s:21:"geoplugin_countryCode";s:2:"DE";s:21:"geoplugin_countryName";s:7:"Germany";s:23:"geoplugin_continentCode";s:2:"EU";s:18:"geoplugin_latitude";s:9:"53.549999";s:19:"geoplugin_longitude";s:2:"10";s:20:"geoplugin_regionCode";s:2:"04";s:20:"geoplugin_regionName";s:7:"Hamburg";s:22:"geoplugin_currencyCode";s:3:"EUR";s:24:"geoplugin_currencySymbol";s:7:"&#8364;";s:29:"geoplugin_currencySymbol_UTF8";s:3:"€";s:27:"geoplugin_currencyConverter";s:6:"0.7578";}]. Expected '"' but got 's'. in /in/FM7qL on line 7 bool(false)
Output for 4.3.2 - 4.3.9, 5.0.0 - 5.0.2
Notice: unserialize(): Error at offset 259 of 858 bytes in /in/FM7qL on line 7 bool(false)
Output for 4.3.0 - 4.3.1
Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 259 of 858 bytes in /in/FM7qL on line 7 bool(false)