3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
1 <?php session_start(); $_SESSION['hello'] = 'test';
based on jjoO3
Output for 7.0.20, 7.1.5 - 7.1.10
1 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/nTc8l:1) in /in/nTc8l on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/nTc8l:1) in /in/nTc8l on line 4
Output for 4.3.2 - 7.0.14, 7.1.0
1 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/nTc8l:2) in /in/nTc8l on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/nTc8l:2) in /in/nTc8l on line 4
Output for 4.3.0 - 4.3.1
1 Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cookie - headers already sent by (output started at /in/nTc8l:2) in /in/nTc8l on line 4 Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cache limiter - headers already sent (output started at /in/nTc8l:2) in /in/nTc8l on line 4