3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
foo <?php session_start(); ?>
Output for 7.2.0
foo Warning: session_start(): Cannot start session when headers already sent in /in/g6FKH on line 2
Output for 7.0.20, 7.1.5 - 7.1.7
foo Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/g6FKH:1) in /in/g6FKH on line 2 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/g6FKH:1) in /in/g6FKH on line 2
Output for 4.3.2 - 7.0.14, 7.1.0
foo Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/g6FKH:2) in /in/g6FKH on line 2 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/g6FKH:2) in /in/g6FKH on line 2
Output for 4.3.0 - 4.3.1
foo Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cookie - headers already sent by (output started at /in/g6FKH:2) in /in/g6FKH on line 2 Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cache limiter - headers already sent (output started at /in/g6FKH:2) in /in/g6FKH on line 2