3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'adf'; session_start(); echo 'ae'; session_start();
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
adf Warning: session_start(): Session cannot be started after headers have already been sent in /in/PJa9D on line 3 ae Warning: session_start(): Session cannot be started after headers have already been sent in /in/PJa9D on line 5
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
adf Warning: session_start(): Cannot start session when headers already sent in /in/PJa9D on line 3 ae Warning: session_start(): Cannot start session when headers already sent in /in/PJa9D on line 5
Output for 7.1.0 - 7.1.33
adf Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/PJa9D:2) in /in/PJa9D on line 3 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/PJa9D:2) in /in/PJa9D on line 3 ae Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/PJa9D:2) in /in/PJa9D on line 5 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/PJa9D:2) in /in/PJa9D on line 5
Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.33
adf Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/PJa9D:2) in /in/PJa9D on line 3 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/PJa9D:2) in /in/PJa9D on line 3 ae Notice: A session had already been started - ignoring session_start() in /in/PJa9D on line 5

preferences:
215.18 ms | 402 KiB | 292 Q