3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_id('öäü'); var_dump(session_start());
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: session_start(): Session ID is too long or contains illegal characters. Only the A-Z, a-z, 0-9, "-", and "," characters are allowed in /in/HXRoR on line 4 Warning: session_start(): Failed to read session data: files (path: ) in /in/HXRoR on line 4 bool(false)
Output for 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33
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/HXRoR on line 4 Warning: session_start(): Failed to read session data: files (path: ) in /in/HXRoR on line 4 bool(false)
Output for 5.5.2 - 5.5.36, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20
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/HXRoR on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/HXRoR:4) in /in/HXRoR on line 4 bool(true) 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.0 - 5.5.1
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/HXRoR on line 4 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/HXRoR:4) in /in/HXRoR on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/HXRoR:4) in /in/HXRoR on line 4 bool(true)

preferences:
182.09 ms | 402 KiB | 218 Q