3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test { function __wakeup() { print "wakeup\n"; } } session_start(); session_decode('fooo|a:1:{i:0;a:1:{s:5:"12345";}}'); var_dump($_SESSION);
based on qVkpW
Output for 5.5.29 - 5.5.38, 5.6.13 - 5.6.30, 7.0.0 - 7.2.0
Notice: session_decode(): Unexpected end of serialized data in /in/6OIEL on line 10 Warning: session_decode(): Failed to decode session object. Session has been destroyed in /in/6OIEL on line 10 array(0) { }
Output for hhvm-3.10.1 - 3.17.3
NULL
Output for 5.5.0 - 5.5.28, 5.6.0 - 5.6.12
Notice: session_decode(): Unexpected end of serialized data in /in/6OIEL on line 10 array(1) { ["fooo"]=> NULL }