3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php session_start(); session_decode('user_agent|s:10:"test|i:5;'); var_dump($_SESSION);
based on egPXK
Output for 5.5.29 - 5.5.38, 5.6.13 - 7.2.0
Warning: session_decode(): Failed to decode session object. Session has been destroyed in /in/XGILl on line 5 array(0) { }
Output for 5.5.0 - 5.5.28, 5.6.0 - 5.6.12
array(2) { ["user_agent"]=> NULL ["10:"test"]=> int(5) }