3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php include("ayar.php"); session_start(); if(!isset($_SESSION["login"])){ echo "Bu sayfayı görüntüleme yetkiniz yoktur."; }else{ echo "Admin sayfasina hosgeldiniz..<br>"; echo "<a href=logout.php>Çıkış Yap</a>"; } ?>
Output for 5.1.0 - 7.1.0
Warning: include(ayar.php): failed to open stream: No such file or directory in /in/TEOK5 on line 2 Warning: include(): Failed opening 'ayar.php' for inclusion (include_path='.:') in /in/TEOK5 on line 2 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/TEOK5:2) in /in/TEOK5 on line 3 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/TEOK5:2) in /in/TEOK5 on line 3 Bu sayfayı görüntüleme yetkiniz yoktur.
Output for 4.3.2 - 5.0.5
Warning: main(ayar.php): failed to open stream: No such file or directory in /in/TEOK5 on line 2 Warning: main(): Failed opening 'ayar.php' for inclusion (include_path='.:') in /in/TEOK5 on line 2 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/TEOK5:2) in /in/TEOK5 on line 3 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/TEOK5:2) in /in/TEOK5 on line 3 Bu sayfayı görüntüleme yetkiniz yoktur.
Output for 4.3.0 - 4.3.1
Warning: main(ayar.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/TEOK5 on line 2 Warning: main() [http://www.php.net/function.main]: Failed opening 'ayar.php' for inclusion (include_path='.:') in /in/TEOK5 on line 2 Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cookie - headers already sent by (output started at /in/TEOK5:2) in /in/TEOK5 on line 3 Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cache limiter - headers already sent (output started at /in/TEOK5:2) in /in/TEOK5 on line 3 Bu sayfayı görüntüleme yetkiniz yoktur.