3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php session_start(); session_decode('login_ok|b:1;nome|s:4:"sica";inteiro|i:34;'); var_dump($_SESSION);
Output for 5.2.3 - 7.1.0
array(3) { ["login_ok"]=> bool(true) ["nome"]=> string(4) "sica" ["inteiro"]=> int(34) }
Output for 4.3.2 - 5.2.2
Warning: session_start(): Cannot send session cookie - headers already sent in /in/um2KG on line 2 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/um2KG:2) in /in/um2KG on line 2 array(3) { ["login_ok"]=> bool(true) ["nome"]=> string(4) "sica" ["inteiro"]=> int(34) }
Output for 4.3.0 - 4.3.1
Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cookie - headers already sent in /in/um2KG on line 2 Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cache limiter - headers already sent (output started at /in/um2KG:2) in /in/um2KG on line 2 array(3) { ["login_ok"]=> bool(true) ["nome"]=> string(4) "sica" ["inteiro"]=> int(34) }