3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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_regenerate_id(true); session_set_save_handler("schliesse", "oeffne", "lese", "loesche", "schreibe", "gc"); session_write_close();
Output for 7.1.0
PHPSESSID Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/9pbP9:6) in /in/9pbP9 on line 42 readclose Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/9pbP9:6) in /in/9pbP9 on line 42 Warning: session_regenerate_id(): Cannot regenerate session id - session is not active in /in/9pbP9 on line 44
Output for 5.5.24 - 7.0.14
PHPSESSID Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/9pbP9:6) in /in/9pbP9 on line 42 read Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/9pbP9:6) in /in/9pbP9 on line 42 Warning: session_regenerate_id(): Cannot regenerate session id - headers already sent in /in/9pbP9 on line 44 writeclose
Output for 4.4.3 - 4.4.9, 5.2.0 - 5.4.3, 5.4.5 - 5.4.45
PHPSESSIDread Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/9pbP9:6) in /in/9pbP9 on line 42 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/9pbP9:6) in /in/9pbP9 on line 42 Warning: session_regenerate_id(): Cannot regenerate session id - headers already sent in /in/9pbP9 on line 44 writeclose
Output for 5.4.4
PHPSESSIDread Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/9pbP9:6) in /in/9pbP9 on line 42 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/9pbP9:6) in /in/9pbP9 on line 42 gc Warning: session_regenerate_id(): Cannot regenerate session id - headers already sent in /in/9pbP9 on line 44 writeclose
Output for 5.1.0 - 5.1.6
PHPSESSIDread Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/9pbP9:6) in /in/9pbP9 on line 42 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/9pbP9:6) in /in/9pbP9 on line 42 destory Warning: session_regenerate_id(): Cannot send session cookie - headers already sent by (output started at /in/9pbP9:6) in /in/9pbP9 on line 44 writeclose
Output for 4.3.2 - 4.4.2, 5.0.0 - 5.0.2, 5.0.4 - 5.0.5
PHPSESSIDread Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/9pbP9:6) in /in/9pbP9 on line 42 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/9pbP9:6) in /in/9pbP9 on line 42 Warning: session_regenerate_id(): Cannot send session cookie - headers already sent by (output started at /in/9pbP9:6) in /in/9pbP9 on line 44 writeclose
Output for 5.0.3
PHPSESSIDread Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/9pbP9:6) in /in/9pbP9 on line 42 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/9pbP9:6) in /in/9pbP9 on line 42 gc Warning: session_regenerate_id(): Cannot send session cookie - headers already sent by (output started at /in/9pbP9:6) in /in/9pbP9 on line 44 writeclose
Output for 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/9pbP9:6) in /in/9pbP9 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/9pbP9:6) in /in/9pbP9 on line 42 gc Fatal error: Call to undefined function: session_regenerate_id() in /in/9pbP9 on line 44 writeclose
Output for 4.3.0
PHPSESSIDread Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cookie - headers already sent by (output started at /in/9pbP9:6) in /in/9pbP9 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/9pbP9:6) in /in/9pbP9 on line 42 Fatal error: Call to undefined function: session_regenerate_id() in /in/9pbP9 on line 44 writeclose