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();
Output for 7.1.0
PHPSESSID Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/SYg2R:6) in /in/SYg2R on line 42 readclose Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/SYg2R:6) in /in/SYg2R on line 42
Output for 5.5.24 - 5.5.31, 5.5.33 - 5.6.28, 7.0.0 - 7.0.14
PHPSESSID Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/SYg2R:6) in /in/SYg2R on line 42 read Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/SYg2R:6) in /in/SYg2R on line 42 writeclose
Output for hhvm-3.10.0 - 3.12.0
PHPSESSIDreadwriteclose
Output for 5.5.32
PHPSESSID Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/SYg2R:6) in /in/SYg2R on line 42 read Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/SYg2R:6) in /in/SYg2R on line 42 gcwriteclose
Output for 4.3.2 - 5.4.45
PHPSESSIDread Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/SYg2R:6) in /in/SYg2R on line 42 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/SYg2R:6) in /in/SYg2R on line 42 writeclose
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/SYg2R:6) in /in/SYg2R 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/SYg2R:6) in /in/SYg2R on line 42 writeclose