3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php header( 'Content-type: text/plain' ); error_reporting(-1); ini_set('display_errors', 1); echo 'foo'; session_start(); header( 'Content-encoding: UTF-8' );
Output for 5.4.34 - 5.6.28, 7.0.0 - 7.1.0
foo Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/4UGoI:4) in /in/4UGoI on line 5 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/4UGoI:4) in /in/4UGoI on line 5 Warning: Cannot modify header information - headers already sent by (output started at /in/4UGoI:4) in /in/4UGoI on line 6
Output for hhvm-3.10.0 - 3.12.0
foo Warning: Cannot modify header information - headers already sent in /in/4UGoI on line 6
Output for 5.3.28 - 5.3.29, 5.4.18 - 5.4.32
Warning: ini_set() has been disabled for security reasons in /in/4UGoI on line 3 foo Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/4UGoI:3) in /in/4UGoI on line 5 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/4UGoI:3) in /in/4UGoI on line 5 Warning: Cannot modify header information - headers already sent by (output started at /in/4UGoI:3) in /in/4UGoI on line 6
Output for 5.2.3 - 5.3.27, 5.4.0 - 5.4.17
Warning: ini_set() has been disabled for security reasons in /in/04jvm on line 3 foo Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/04jvm:3) in /in/04jvm on line 5 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/04jvm:3) in /in/04jvm on line 5 Warning: Cannot modify header information - headers already sent by (output started at /in/04jvm:3) in /in/04jvm on line 6
Output for 4.3.5 - 5.2.2
Warning: ini_set() has been disabled for security reasons in /in/04jvm on line 3 foo Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/04jvm:3) in /in/04jvm on line 5 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/04jvm:3) in /in/04jvm on line 5
Output for 4.3.2 - 4.3.4
Warning: ini_set,pcntl_fork() has been disabled for security reasons in /in/04jvm on line 3 foo Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/04jvm:3) in /in/04jvm on line 5 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/04jvm:3) in /in/04jvm on line 5
Output for 4.3.1
Warning: ini_set,pcntl_fork() has been disabled for security reasons in /in/04jvm on line 3 foo Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cookie - headers already sent by (output started at /in/04jvm:3) in /in/04jvm on line 5 Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cache limiter - headers already sent (output started at /in/04jvm:3) in /in/04jvm on line 5
Output for 4.3.0
foo Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cookie - headers already sent by (output started at /in/4UGoI:4) in /in/4UGoI on line 5 Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cache limiter - headers already sent (output started at /in/4UGoI:4) in /in/4UGoI on line 5