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_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/PRQip:6) in /in/PRQip on line 42 readclose Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/PRQip:6) in /in/PRQip on line 42
Output for 5.5.2 - 5.6.15, 5.6.17 - 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/PRQip:6) in /in/PRQip on line 42 read Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/PRQip:6) in /in/PRQip on line 42 writeclose
Output for hhvm-3.10.0 - 3.12.0
PHPSESSIDreadwriteclose
Output for 5.6.16
PHPSESSID Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/PRQip:6) in /in/PRQip on line 42 read Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/PRQip:6) in /in/PRQip on line 42 gcwriteclose
Output for 4.3.2 - 5.5.1
PHPSESSIDread Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/PRQip:6) in /in/PRQip on line 42 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/PRQip:6) in /in/PRQip 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/PRQip:6) in /in/PRQip 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/PRQip:6) in /in/PRQip on line 42 writeclose