3v4l.org

run code in 300+ PHP versions simultaneously
<meta http-equiv=content-type content="text/html;charset=windows-1254"> <?php echo "<center>"; // Bismillahirrahmanirrahim include ("her.php"); $useradi=$_POST['userx']; $sifresi=$_POST['pwdx']; if ($useradi==NULL) { echo "Giri&#351; Yap&#305;n&#305;z<br>"; echo $msg; exit(); } elseif ($sifresi==NULL) { echo "Giris Yapiniz<br>"; echo $msg; exit(); } $dizi=file("guven.txt"); $saydir=count($dizi); for ($n=0; $n<$saydir; $n++) { $dizi[$n]=explode("-", $dizi[$n]); } $dizigenel=file("genel.txt"); for ($row=0; $row<$saydir; $row++) { if ($dizi[$row][0]==$useradi && $dizi[$row][1]==$sifresi) { // ÜYELIK SISTEMI echo "<title>$useradi</title><table border=0><tr><td><center><b>ÜYELIK SISTEMI</b> <br>Sayin <b>$useradi</b> Sitemize Hosgeldiniz."; // DIGER ÜYELER echo "</td></tr><tr><td align=center>"; echo "<b>DIGER ÜYELER</b>(<b>$saydir</b>)<br>"; $dizigenel=array_reverse($dizigenel); for($s=0; $s<$saydir; $s++) { echo "$dizigenel[$s]<br>"; } echo "</center></td></tr></table>"; // MESAJ GÖNDER FORM echo "<table border=0><tr><td><center> <form name=giris action=ana.php method=post><b>MESAJ GÖNDER</b> <input type=hidden name=userx value=$useradi> <input type=hidden name=pwdx value=$sifresi><table border=0><tr><td> Kime:</td><td><input type=text name=kime></td></tr><tr><td> Baslik:</td><td><input name=baslik type=text maxlength=25></td></tr><tr><td> Mesaj:</td><td><textarea name=mesaj></textarea></td></tr><tr><td> </td><td align=right><input type=submit value=Gönder></td></tr><table> </form>"; // MESAJ GÖNDER ISLEM $kime=$_POST[kime] ; $baslik=$_POST[baslik] ; $mesaj=$_POST[mesaj] ; $dizi=file("kon.txt"); $alicikontrol=("-$kime-"); if (@strstr($dizi[0], $alicikontrol)) { $kimden=$useradi; if ($kime==$useradi) {$kimden="kendim";} $fgiden= fopen("$kime.txt", "a"); $myazilacak= "<table border=0><tr><td><b>Kimden:</b>$kimden</td><td align=right><b>Baslik:</b>$baslik</td></tr><tr><td width=280 colspan=2><b>Mesaj:</b> $mesaj</b><hr></td></tr></table>\n"; fwrite($fgiden, $myazilacak); } elseif (($kime==NULL) and ($baslik==NULL) and ($mesaj==NULL)) { $file = fopen($useradi.".txt", "w") ; fwrite($file, "74" ); fclose($file); } else { echo "<font color=red>[Böyle bir kullanici yok]</font><br> "; } // GELEN KUTUSU fopen("$useradi.txt", "a"); $gelen=file("$useradi.txt"); $gelen=array_reverse($gelen); $onunsayisi=count($gelen); echo "<b>GELEN MESAJLAR</b> (<b>$onunsayisi</b>)<br>"; for ($gelensayisi=0; $gelensayisi<count($gelen); $gelensayisi++) { echo "$gelen[$gelensayisi]<br>"; } echo "</td></tr></table>"; echo "$msg</center>"; } } ?> <? // Submit Dener 1 $useradi=$_POST['userx']; $sifresi=$_POST['pwdx']; if($_POST['Submit']){ $open = fopen("$useradi.txt","w+"); $text = $_POST['update']; fwrite($open, $text); fclose($open); echo "File updated.<br />"; echo "File:<br />"; $file = file("$useradi.txt"); foreach($file as $text) { echo $text."<br />"; } }else{ $file = file("$useradi.txt"); echo "<form action=\"target.php\" method=\"post\">" ; echo "<form action=target.php method=\"post\"><input name=\"hedefer\" maxlength=\"50\" size=\"20\">"; echo "<input type=\"hidden\" name=bosuc value=\"$filename\">"; echo "<input type=\"hidden\" name=useradi value=\"$useradi\">"; echo "<input type=\"hidden\" name=pwdx value=\"$sifresi\">"; echo "<input type=\"hidden\" name=filename value=\"$downloadlink\">"; echo "<input type=\"hidden\" name=content value=\"\">"; echo "<input type=\"submit\" value=\"Send the link!\"><br /><br /></form>"; } ?> <table border=0><tr><td><center> <form name=giris action="<?=$_SERVER['PHP_SELF'];?>" method=post><b>Temizle</b> <input type=hidden name=userx value=$useradi> <input type=hidden name=pwdx value=$sifresi><table border=0><tr><td> </td><td><input type=hidden name=submitciniz value=true></td></tr><tr><td> </td><td><input name=copustasi type=text maxlength=25></td></tr><tr><td> </td><td><textarea name=mesaj></textarea></td></tr><tr><td> </td><td align=right><input type=submit value=Gönder></td></tr><table></form> <? $content = "2222" $mesajibosla = $_POST['copustasi']; if ($mesajibosla==NULL){ $file = fopen($useradi.".txt", "w") ; fwrite($file, $content ); fclose($file); } ?> <? echo "$content" ; ?>
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
<meta http-equiv=content-type content="text/html;charset=windows-1254"> <center> Warning: include(): open_basedir restriction in effect. File(her.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/A9WZn on line 5 Warning: include(her.php): Failed to open stream: Operation not permitted in /in/A9WZn on line 5 Warning: include(): Failed opening 'her.php' for inclusion (include_path='.:') in /in/A9WZn on line 5 Warning: Undefined array key "userx" in /in/A9WZn on line 7 Warning: Undefined array key "pwdx" in /in/A9WZn on line 8 Giri&#351; Yap&#305;n&#305;z<br> Warning: Undefined variable $msg in /in/A9WZn on line 13
Output for 8.0.13
Parse error: syntax error, unexpected variable "$mesajibosla" in /in/A9WZn on line 159
Process exited with code 255.
Output for 5.4.0 - 5.4.24, 7.3.32 - 7.3.33, 7.4.33
Parse error: syntax error, unexpected '$mesajibosla' (T_VARIABLE) in /in/A9WZn on line 159
Process exited with code 255.
Output for 7.2.29 - 7.2.33, 7.3.16 - 7.3.31, 7.4.3 - 7.4.32
<meta http-equiv=content-type content="text/html;charset=windows-1254"> <center> Warning: include(): open_basedir restriction in effect. File(her.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/A9WZn on line 5 Warning: include(her.php): failed to open stream: Operation not permitted in /in/A9WZn on line 5 Warning: include(): Failed opening 'her.php' for inclusion (include_path='.:') in /in/A9WZn on line 5 Notice: Undefined index: userx in /in/A9WZn on line 7 Notice: Undefined index: pwdx in /in/A9WZn on line 8 Giri&#351; Yap&#305;n&#305;z<br> Notice: Undefined variable: msg in /in/A9WZn on line 13
Output for 5.3.0 - 5.3.29, 5.4.25 - 5.4.32
<meta http-equiv=content-type content="text/html;charset=windows-1254"> <center> Warning: include(her.php): failed to open stream: No such file or directory in /in/A9WZn on line 5 Warning: include(): Failed opening 'her.php' for inclusion (include_path='.:') in /in/A9WZn on line 5 Notice: Undefined index: userx in /in/A9WZn on line 7 Notice: Undefined index: pwdx in /in/A9WZn on line 8 Giri&#351; Yap&#305;n&#305;z<br> Notice: Undefined variable: msg in /in/A9WZn on line 13
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
<meta http-equiv=content-type content="text/html;charset=windows-1254"> <center> Warning: include(her.php): failed to open stream: No such file or directory in /in/A9WZn on line 5 Warning: include(): Failed opening 'her.php' for inclusion (include_path='.:') in /in/A9WZn on line 5 Notice: Undefined index: userx in /in/A9WZn on line 7 Notice: Undefined index: pwdx in /in/A9WZn on line 8 Giri&#351; Yap&#305;n&#305;z<br> Notice: Undefined variable: msg in /in/A9WZn on line 13
Output for 5.0.4 - 5.0.5
<meta http-equiv=content-type content="text/html;charset=windows-1254"> <center> Warning: main(her.php): failed to open stream: No such file or directory in /in/A9WZn on line 5 Warning: main(): Failed opening 'her.php' for inclusion (include_path='.:') in /in/A9WZn on line 5 Notice: Undefined index: userx in /in/A9WZn on line 7 Notice: Undefined index: pwdx in /in/A9WZn on line 8 Giri&#351; Yap&#305;n&#305;z<br> Notice: Undefined variable: msg in /in/A9WZn on line 13
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.3
<meta http-equiv=content-type content="text/html;charset=windows-1254"> <center> Warning: main(her.php): failed to open stream: No such file or directory in /in/A9WZn on line 5 Warning: main(): Failed opening 'her.php' for inclusion (include_path='.:') in /in/A9WZn on line 5 Notice: Undefined index: userx in /in/A9WZn on line 7 Notice: Undefined index: pwdx in /in/A9WZn on line 8 Giri&#351; Yap&#305;n&#305;z<br> Notice: Undefined variable: msg in /in/A9WZn on line 13
Output for 4.3.0 - 4.3.1
<meta http-equiv=content-type content="text/html;charset=windows-1254"> <center> Warning: main(her.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/A9WZn on line 5 Warning: main() [http://www.php.net/function.main]: Failed opening 'her.php' for inclusion (include_path='.:') in /in/A9WZn on line 5 Notice: Undefined index: userx in /in/A9WZn on line 7 Notice: Undefined index: pwdx in /in/A9WZn on line 8 Giri&#351; Yap&#305;n&#305;z<br> Notice: Undefined variable: msg in /in/A9WZn on line 13

preferences:
216.3 ms | 402 KiB | 255 Q