3v4l.org

run code in 300+ PHP versions simultaneously
<?php function oeffne($speicherpfad, $session_name) { echo $session_name; return(true); } function schliesse() { echo 'close'; return(true); } function lese($id) { echo 'read'; return ''; } function schreibe($id, $sess_daten) { echo 'write'; return true; } function loesche($id) { echo 'destory'; return true; } function gc($maxlifetime) { echo 'gc'; return true; } session_set_save_handler("oeffne", "schliesse", "lese", "schreibe", "loesche", "gc"); session_start(); session_destroy(); session_write_close();
Output for 8.0.0 - 8.0.21, 8.0.23 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
PHPSESSID Warning: session_start(): Session cookie cannot be sent after headers have already been sent (output started at /in/Ob2UL:6) in /in/Ob2UL on line 42 readclose Warning: session_start(): Session cache limiter cannot be sent after headers have already been sent (output started at /in/Ob2UL:6) in /in/Ob2UL on line 42 Warning: session_destroy(): Trying to destroy uninitialized session in /in/Ob2UL on line 43
Output for 8.0.22
PHPSESSID Warning: session_start(): Session cookie cannot be sent after headers have already been sent (output started at /in/Ob2UL:6) in /in/Ob2UL on line 42 readgcclose Warning: session_start(): Session cache limiter cannot be sent after headers have already been sent (output started at /in/Ob2UL:6) in /in/Ob2UL on line 42 Warning: session_destroy(): Trying to destroy uninitialized session in /in/Ob2UL on line 43
Output for 7.1.0 - 7.1.33, 7.2.5 - 7.2.33, 7.3.0 - 7.3.8, 7.3.10 - 7.3.33, 7.4.0 - 7.4.27, 7.4.29 - 7.4.33
PHPSESSID Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/Ob2UL:6) in /in/Ob2UL on line 42 readclose Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/Ob2UL:6) in /in/Ob2UL on line 42 Warning: session_destroy(): Trying to destroy uninitialized session in /in/Ob2UL on line 43
Output for 7.3.9, 7.4.28
PHPSESSID Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/Ob2UL:6) in /in/Ob2UL on line 42 readgcclose Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/Ob2UL:6) in /in/Ob2UL on line 42 Warning: session_destroy(): Trying to destroy uninitialized session in /in/Ob2UL on line 43
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20
PHPSESSID Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/Ob2UL:6) in /in/Ob2UL on line 42 read Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/Ob2UL:6) in /in/Ob2UL on line 42 destoryclose
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45
PHPSESSIDread Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/Ob2UL:6) in /in/Ob2UL on line 42 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/Ob2UL:6) in /in/Ob2UL on line 42 destoryclose
Output for 4.3.0 - 4.3.1
PHPSESSIDread Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cookie - headers already sent by (output started at /in/Ob2UL:6) in /in/Ob2UL on line 42 Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cache limiter - headers already sent (output started at /in/Ob2UL:6) in /in/Ob2UL on line 42 destoryclose

preferences:
186.93 ms | 402 KiB | 342 Q