3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (ini_get('session.auto_start')) { session_destroy(); } ini_set('session.serialize_handler', 'php_serialize'); session_start(); $_SESSION['ryat'] = '|O:8:"stdClass":0:{}'; var_dump($_SESSION);
based on 7jgG8
Output for 5.5.24 - 7.2.0
array(1) { ["ryat"]=> string(20) "|O:8:"stdClass":0:{}" }
Output for 5.3.21 - 5.4.45
Warning: ini_set(): Cannot find serialization handler 'php_serialize' in /in/ZHFtO on line 6 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/ZHFtO:6) in /in/ZHFtO on line 7 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/ZHFtO:6) in /in/ZHFtO on line 7 array(1) { ["ryat"]=> string(20) "|O:8:"stdClass":0:{}" }