3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(session_id('öäü')); var_dump(session_start()); var_dump(session_id());
based on 2Wovb
Output for 7.2.0
string(0) "" Warning: session_start(): Cannot start session when headers already sent in /in/IX7Ga on line 4 bool(false) string(6) "öäü"
Output for 7.1.0 - 7.1.10
string(0) "" Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/IX7Ga:3) in /in/IX7Ga on line 4 Warning: session_start(): The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in /in/IX7Ga on line 4 Warning: session_start(): Failed to read session data: files (path: ) in /in/IX7Ga on line 4 bool(false) string(6) "öäü"
Output for 5.5.2 - 7.0.20
string(0) "" Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/IX7Ga:3) in /in/IX7Ga on line 4 Warning: session_start(): The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in /in/IX7Ga on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/IX7Ga:3) in /in/IX7Ga on line 4 bool(true) string(6) "öäü" Warning: Unknown: The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0
Output for 5.5.1
string(0) "" Warning: session_start(): The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in /in/IX7Ga on line 4 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/IX7Ga:3) in /in/IX7Ga on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/IX7Ga:3) in /in/IX7Ga on line 4 bool(true) string(32) "a6e2f50886ddfd7244dc9ecaeda7d5d2"
Output for 5.5.0
string(0) "" Warning: session_start(): The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in /in/IX7Ga on line 4 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/IX7Ga:3) in /in/IX7Ga on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/IX7Ga:3) in /in/IX7Ga on line 4 bool(true) string(32) "2723c9172254769012e87f0413fcd51e"