3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test { function __wakeup() { print "wakeup\n"; } } session_start(); session_decode('core|a:5:{s:23:"_session_validator_data";a:4:{s:11:"remote_addr";s:9:"127.0.0.1";s:8:"http_via";s:0:"";s:20:"http_x_forwarded_for";s:0:"";s:15:"http_user_agent";s:33:"}}test|O:4:"Test":0:{}fooo|s:500:";}s:8:"messages";O:34:"Mage_Core_Model_Message_Collection":2:{s:12:"*_messages";a:0:{}s:20:"*_lastAddedMessage";N;}s:15:"just_voted_poll";b:0;s:12:"visitor_data";a:16:{s:0:"";N;s:11:"server_addr";i:2130706433;s:11:"remote_addr";i:2130706433;s:11:"http_secure";b:0;s:9:"http_host";s:9:"127.0.0.1";s:15:"http_user_agent";s:33:"}}test|O:4:"Test":0:{}fooo|s:500:";s:20:"http_accept_language";s:0:"";s:19:"http_accept_charset";s:0:"";s:11:"request_uri";s:18:"/magento/index.php";s:10:"session_id";s:6:"iiiiii";s:12:"http_referer";s:0:"";s:14:"first_visit_at";s:19:"2015-12-18 16:22:27";s:14:"is_new_visitor";b:0;s:13:"last_visit_at";s:19:"2015-12-18 16:22:27";s:10:"visitor_id";s:2:"50";s:11:"last_url_id";s:3:"179";}s:8:"last_url";s:51:"http://127.0.0.1/magento/index.php/cms/index/index/";}customer_base|a:3:{s:23:"_session_validator_data";a:4:{s:11:"remote_addr";s:9:"127.0.0.1";s:8:"http_via";s:0:"";s:20:"http_x_forwarded_for";s:0:"";s:15:"http_user_agent";s:33:"}}test|O:4:"Test":0:{}fooo|s:500:";}s:8:"messages";O:34:"Mage_Core_Model_Message_Collection":2:{s:12:"*_messages";a:0:{}s:20:"*_lastAddedMessage";N;}s:19:"wishlist_item_count";i:0;}checkout|a:2:{s:23:"_session_validator_data";a:4:{s:11:"remote_addr";s:9:"127.0.0.1";s:8:"http_via";s:0:"";s:20:"http_x_forwarded_for";s:0:"";s:15:"http_user_agent";s:33:"}}test|O:4:"Test":0:{}fooo|s:500:";}s:8:"messages";O:34:"Mage_Core_Model_Message_Collection":2:{s:12:"*_messages";a:0:{}s:20:"*_lastAddedMessage";N;}}catalog|a:3:{s:23:"_session_validator_data";a:4:{s:11:"remote_addr";s:9:"127.0.0.1";s:8:"http_via";s:0:"";s:20:"http_x_forwarded_for";s:0:"";s:15:"http_user_agent";s:33:"}}test|O:4:"Test":0:{}fooo|s:500:";}s:8:"messages";O:34:"Mage_Core_Model_Message_Collection":2:{s:12:"*_messages";a:0:{}s:20:"*_lastAddedMessage";N;}s:27:"catalog_compare_items_count";i:0;}reports|a:3:{s:23:"_session_validator_data";a:4:{s:11:"remote_addr";s:9:"127.0.0.1";s:8:"http_via";s:0:"";s:20:"http_x_forwarded_for";s:0:"";s:15:"http_user_agent";s:33:"}}test|O:4:"Test":0:{}fooo|s:500:";}s:28:"product_index_compared_count";i:0;s:26:"product_index_viewed_count";i:0;}'); var_dump($_SESSION);
based on uf7kX
Output for 5.4.45, 5.5.29 - 5.5.35, 5.6.13 - 7.2.0
Warning: session_decode(): Failed to decode session object. Session has been destroyed in /in/b5hFf on line 10 array(0) { }
Output for 5.3.20 - 5.4.44, 5.5.24 - 5.5.28, 5.6.8 - 5.6.12
wakeup wakeup wakeup array(6) { ["core"]=> NULL ["a:0:{}s:20:"*_lastAddedMessage";N;}s:15:"just_voted_poll";b:0;s:12:"visitor_data";a:16:{s:0:"";N;s:11:"server_addr";i:2130706433;s:11:"remote_addr";i:2130706433;s:11:"http_secure";b:0;s:9:"http_host";s:9:"127.0.0.1";s:15:"http_user_agent";s:33:"}}test"]=> object(Test)#1 (0) { } ["fooo"]=> string(500) ";s:20:"http_accept_language";s:0:"";s:19:"http_accept_charset";s:0:"";s:11:"request_uri";s:18:"/magento/index.php";s:10:"session_id";s:6:"iiiiii";s:12:"http_referer";s:0:"";s:14:"first_visit_at";s:19:"2015-12-18 16:22:27";s:14:"is_new_visitor";b:0;s:13:"last_visit_at";s:19:"2015-12-18 16:22:27";s:10:"visitor_id";s:2:"50";s:11:"last_url_id";s:3:"179";}s:8:"last_url";s:51:"http://127.0.0.1/magento/index.php/cms/index/index/";}customer_base|a:3:{s:23:"_session_validator_data";a:4:{s:11:"remote_addr" ["s:9:"127.0.0.1";s:8:"http_via";s:0:"";s:20:"http_x_forwarded_for";s:0:"";s:15:"http_user_agent";s:33:"}}test"]=> object(Test)#2 (0) { } ["dator_data";a:4:{s:11:"remote_addr";s:9:"127.0.0.1";s:8:"http_via";s:0:"";s:20:"http_x_forwarded_for";s:0:"";s:15:"http_user_agent";s:33:"}}test"]=> object(Test)#3 (0) { } ["500:";}s:8:"messages";O:34:"Mage_Core_Model_Message_Collection":2:{s:12:"*_messages";a:0:{}s:20:"*_lastAddedMessage";N;}s:27:"catalog_compare_items_count";i:0;}reports"]=> array(3) { ["_session_validator_data"]=> array(4) { ["remote_addr"]=> string(9) "127.0.0.1" ["http_via"]=> string(0) "" ["http_x_forwarded_for"]=> string(0) "" ["http_user_agent"]=> string(33) "}}test|O:4:"Test":0:{}fooo|s:500:" } ["product_index_compared_count"]=> int(0) ["product_index_viewed_count"]=> int(0) } }