3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php session_set_save_handler(function() { echo 1; }, function() { echo 2; }, function() { echo 3; }, function() { echo 4; }, function() { echo 5; }, function() { echo 6; }); //"oeffne", "schliesse", "lese", "schreibe", "loesche", "gc"); session_start();
based on JBsDF
Output for 7.2.0
1 Warning: session_start(): Session callback expects true/false return value in /in/JMtb1 on line 5 2 Warning: session_start(): Session callback expects true/false return value in /in/JMtb1 on line 5 Warning: session_start(): Failed to initialize storage module: user (path: ) in /in/JMtb1 on line 5
Output for 7.1.0 - 7.1.10
1 Warning: session_start(): Session callback expects true/false return value in /in/JMtb1 on line 5 2 Warning: session_start(): Session callback expects true/false return value in /in/JMtb1 on line 5 Fatal error: session_start(): Failed to initialize storage module: user (path: ) in /in/JMtb1 on line 5
Process exited with code 255.
Output for 7.0.0 - 7.0.20
1 Warning: session_start(): Session callback expects true/false return value in /in/JMtb1 on line 5 Fatal error: session_start(): Failed to initialize storage module: user (path: ) in /in/JMtb1 on line 5 2 Warning: Unknown: Session callback expects true/false return value in Unknown on line 0
Process exited with code 255.
Output for 5.5.24 - 5.5.33, 5.5.35 - 5.6.28
1 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/JMtb1:3) in /in/JMtb1 on line 5 3 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/JMtb1:3) in /in/JMtb1 on line 5 42
Output for 5.5.34
1 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/JMtb1:3) in /in/JMtb1 on line 5 3 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/JMtb1:3) in /in/JMtb1 on line 5 642
Output for 5.3.19 - 5.4.1, 5.4.3 - 5.4.45
13 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/JMtb1:3) in /in/JMtb1 on line 5 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/JMtb1:3) in /in/JMtb1 on line 5 42
Output for 5.4.2
13 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/JMtb1:3) in /in/JMtb1 on line 5 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/JMtb1:3) in /in/JMtb1 on line 5 642