3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php session_set_save_handler(function() { echo 1; return true; }, function() { echo 2; return true; }, function() { echo 3;return true; }, function() { echo 4;return true; }, function() { echo 5;return true; }, function() { echo 6;return true; }); //"oeffne", "schliesse", "lese", "schreibe", "loesche", "gc"); session_start(); echo 'blubb';
based on JIdWV
Output for 7.1.0 - 7.2.0
1 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/t7IZm:3) in /in/t7IZm on line 5 32 Warning: session_start(): Failed to read session data: user (path: ) in /in/t7IZm on line 5 blubb
Output for 5.5.24 - 7.0.20
1 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/t7IZm:3) in /in/t7IZm on line 5 3 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/t7IZm:3) in /in/t7IZm on line 5 blubb42
Output for 5.3.19 - 5.4.45
13 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/t7IZm:3) in /in/t7IZm on line 5 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/t7IZm:3) in /in/t7IZm on line 5 blubb42