3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php #Gerekli Dosyalar Ýnclude Edildi include("fonksiyonlar.php"); Ust($site_baslik,$site_adres);//Ust Bölüm ?> <?php if($_GET['action']=="request") $_SESSION['lang']=$_GET['lang']; if(empty($_SESSION['lang'])) fnStart(); if( $_SESSION['lang']=="tr") include "lang/turkish.inc.php"; elseif( $_SESSION['lang']=="en") include "lang/english.inc.php"; elseif( $_SESSION['lang']=="de") include "lang/deutsch.inc.php"; else ?> <div class="slider-bg"> <div class="announcement"> <div class="p1"><?=$strDuyurular?></div> <div class="p2"> <ul id="announcement" class="js-hidden"> <?php $katsorgu5 = "SELECT * FROM edel_haberler where gizle='0'"; $katsorgux4 = mysql_query($katsorgu5); while($katx3 = mysql_fetch_array($katsorgux4)) { $idx3 = $katx3["id"]; $baslikx3 = $katx3["baslik"]; $en_baslikx3 = $katx3["en_baslik"]; $dl_baslik3 = $katx3["dl_baslik"]; ?> <li class="news-item"><a href="haberler-<?=$idx3?>-<?=seoyap($baslikx3);?>.html"> <?php $durum = $_SESSION['lang']; if($durum=="tr"){ ?> <?=$baslikx3?><?php } ?> <?php $durum = $_SESSION['lang']; if($durum=="en"){ ?> <?=$en_baslikx3?><?php } ?> <?php $durum = $_SESSION['lang']; if($durum=="de"){ ?> <?=$dl_baslik3?><?php } ?>..</a></li> <? } ?> </ul> </div> </div> <div class="anasayfa_slayt_alani"> <ul id="anasayfa_slayt"> <?php $katsorgu6 = mysql_query("SELECT * FROM edel_banner where durum='1' ORDER BY sira ASC limit 20"); while($katx4 = mysql_fetch_array($katsorgu6)) { $resimx4 = $katx4['resim']; $en_picx4 = $katx4['en_pic']; $de_picx4 = $katx4['de_pic']; $baslikx4 = $katx4['baslik']; $en_baslikx4 = $katx4['en_baslik']; $dl_baslikx4 = $katx4['dl_baslik']; $linkx4 = $katx4['link']; $idx4 = $katx4['id']; ?> <li><a href="<?=$linkx4;?>" title="<?php $durum = $_SESSION['lang']; if($durum=="de"){ ?> <?=$dl_baslikx4;?><?php } ?> <?php $durum = $_SESSION['lang']; if($durum=="tr"){ ?> <?=$baslikx4;?><?php } ?> <?php $durum = $_SESSION['lang']; if($durum=="en"){ ?> <?=$en_baslikx4;?><?php } ?>"><img src="images_up/<?php $durum = $_SESSION['lang']; if($durum=="de"){ ?> <?=$de_picx4;?><?php } ?> <?php $durum = $_SESSION['lang']; if($durum=="tr"){ ?> <?=$resimx4;?><?php } ?> <?php $durum = $_SESSION['lang']; if($durum=="en"){ ?> <?=$en_picx4;?><?php } ?>" alt="" /></a></li> <?php } ?> </ul> <div class="container"> <ul class="slider_selector"></ul> </div> </div> </div> </div> </div> <div class="footer"> <div class="area"> <div class="a1"> <div class="hr"><span class="txtbold"><?=$strBBizkimiz?></span> <a href="kurumsal-1-hakkimizda.html" class="all"><b><?=$strDevam?></b></a></div> <img src="images/img1.png" alt="" /> <?php $tablo_oku1 = mysql_fetch_array(mysql_query("select * from edel_sayfa where id='1'")); ?> <?php $durum = $_SESSION['lang']; if($durum=="tr"){ ?> <?=substr($tablo_oku1[icerik],0,640);?>...<?php } ?> <?php $durum = $_SESSION['lang']; if($durum=="de"){ ?> <?=substr($tablo_oku1[dl_icerik],0,640);?>...<?php } ?> <?php $durum = $_SESSION['lang']; if($durum=="en"){ ?> <?=substr($tablo_oku1[en_icerik],0,640);?>...<?php } ?> </div> <div class="a2 306"> <div class="hr"><span class="txtbold"><?=$strBHaberler?></span> <div class= "newsbutton"> <img style="margin-left:10px;" id="nextnews" src="images/nextnews.png" /> <img id="prenews" src="images/newspre.png" /></div> </div> <ul class="bxslider"> <?php $katsorgu2 = "SELECT * FROM edel_haberler where kategori='1' ORDER BY id DESC limit 2"; $katsorgu = mysql_query($katsorgu2); while($kat = mysql_fetch_array($katsorgu)) { $id3 = $kat["id"]; $baslik3 = $kat["baslik"]; $giris3 = $kat["giris"]; $resim3 = $kat["resim"]; $baslik_dl3 = $kat["dl_baslik"]; $giris_dl3 = $kat["dl_giris"]; $baslik_en3 = $kat["en_baslik"]; $giris_en3 = $kat["en_giris"]; ?> <li> <img src="./images_up/<?=$resim3?>" alt="<?php $durum = $_SESSION['lang']; if($durum=="de"){ ?> <?=$baslik_dl3;?><?php } ?> <?php $durum = $_SESSION['lang']; if($durum=="tr"){ ?> <?=$baslik3?><?php } ?> <?php $durum = $_SESSION['lang']; if($durum=="en"){ ?> <?=$baslik_en3;?><?php } ?>" /><a href="haberler-<?=($id3)?>-<?=(seoyap($baslik3))?>.html" class="txtmedium"><?php $durum = $_SESSION['lang']; if($durum=="de"){ ?> <?=substr($baslik_dl3,0,30);?>..<?php } ?> <?php $durum = $_SESSION['lang']; if($durum=="tr"){ ?> <?=substr($baslik3,0,30)?>..<?php } ?> <?php $durum = $_SESSION['lang']; if($durum=="en"){ ?> <?=substr($baslik_en3,0,30);?>..<?php } ?></a> <br /> <?php $durum = $_SESSION['lang']; if($durum=="de"){ ?> <?=substr($giris_dl3,0,260);?>..<?php } ?> <?php $durum = $_SESSION['lang']; if($durum=="tr"){ ?> <?=substr($giris3,0,260);?>..<?php } ?> <?php $durum = $_SESSION['lang']; if($durum=="en"){ ?> <?=substr($giris_en3,0,260);?>..<?php } ?> <a href="haberler-<?=($id3)?>-<?=(seoyap($baslik3))?>.html" class="all"><b><?=$strDevam?></b></a> </li> <?php } ?> </ul> </div> <div class="a3"> <div class="p1"> <span class="txtmedium"><?=$strBUrunler?></span> <div class= "productsbuttons"><img id ="proprev" src="images/productleftarrow.png" /><img style="margin-left:10px;" id="pronext" src="images/productrightarrow.png" /></div> </div> <div class="products"> <ul class="mainslider"> <?php $tablo_oku2 = mysql_query("SELECT * FROM edel_urun where vitrin='1' ORDER BY no DESC limit 7"); while($oku = mysql_fetch_array($tablo_oku2)) { $urunkat = $oku['urunkat']; $urunadi = $oku['urunadi']; $en_urunadi = $oku['en_urunadi']; $dl_urunadi = $oku['dl_urunadi']; $id = $oku['no']; $resim = $oku['resim']; ?> <li><a href="urun-<?=$id?>-<?=$urunkat?>-<?=(seoyap($urunadi))?>.html"><img src="images_up/<?=$resim?>" /> <span><?php $durum = $_SESSION['lang']; if($durum=="tr"){ ?> <?=substr($urunadi,0,30)?>...<?php } ?> <?php $durum = $_SESSION['lang']; if($durum=="de"){ ?> <?=substr($dl_urunadi,0,30)?>...<?php } ?> <?php $durum = $_SESSION['lang']; if($durum=="en"){ ?> <?=substr($en_urunadi,0,30)?>...<?php } ?> </span></a></li> <?php } ?> </ul> </div> <div class="p3"> <a href="urunlerimiz.html" class="all"><?=$strTumu?></a> </div> </div> <div class="footop"> <div class="f1"> <div id="slider"> <img id="imgpre" class="scrollButtons left" src="images/imgprev.png" alt="Sol"> <div class="bottomslider"> <ul class="bottompanel"> <?php $tablo_oku3 = mysql_query("SELECT * FROM edel_fotograf ORDER BY id DESC limit 20"); while($oku3 = mysql_fetch_array($tablo_oku3)) { $resimx6 = $oku3['resim']; $baslikx6 = $oku3['baslik']; $en_baslikx6 = $oku3['en_baslik']; $dl_baslikx6 = $oku3['dl_baslik']; $idx6 = $oku3['id']; ?> <li><a href="foto-galeri.html"><img src="thumbs/<?=$resimx6;?>" alt="<?php $durum = $_SESSION['lang']; if($durum=="tr"){ ?> <?=$baslikx6;?><?php } ?> <?php $durum = $_SESSION['lang']; if($durum=="de"){ ?> <?=$dl_baslikx6;?><?php } ?> <?php $durum = $_SESSION['lang']; if($durum=="en"){ ?> <?=$en_baslikx6;?><?php } ?>"></a></li> <?php } ?> </ul> </div> <img id="imgnext" class="scrollButtons right" src="images/imgnext.png" alt="sag"> </div> </div> <div class="f2"> <p class="title"><span class="txtmedium"><?=$strBBulten?></span></p> <p class="desc"><?=$strBBulten1?></p> <form action="bulten.html" method="post"> <INPUT TYPE="hidden" name="gelenekle" value="1"> <input class="email" name="email" type="text" placeholder="<?=$strBBulten2?>" value="" /> <input class="button txtmedium" type="submit" value="<?=$strBBulten3?>" /> </form> </div> </div> </div> <? $bugunn= gmdate("Y-m-d", time() + 3600*$timezone); $blocked_ips=('66.249.64.0'); // GOOGLE ve BAZI IP LERI SAYMA $default_ip_mask = '255.255.224.0'; $block_ip = '66.249.64.0'; // SAYAÇ $id2 = $_COOKIE["id2"]; $time2=time() + 3600*$timezone; $ip2=$_SERVER['REMOTE_ADDR']; $ag2 = $_SERVER["HTTP_USER_AGENT"] ; $tld = substr($_SERVER['HTTP_HOST'], -4, 4); //$mip2 = maskele($ip2,$default_ip_mask); //if( (!$id2) && ( $mip2!=$block_ip ) ) //if( (!$id2) && ( !in_array($mip2,$blocked_ips) ) ) if (!$id2) { $id2 = md5(uniqid(time())); setcookie("id2",$id2,time()+3600); mysql_query("INSERT INTO edel_sayac_oturum(ip,oturum,zaman,mip,agent,tld) VALUES('$ip2','$id2','$time2','$mip2','$ag2','$tld')", $connect) or die("Hata : ".mysql_error()); mysql_query("INSERT INTO edel_sayac_online(oturum,zaman) VALUES('$id2','$time2')", $connect) or die("Hata : ".mysql_error()); $date_a= gmdate("Y-m-d", $time2); $date_ay= gmdate("m", $time2); $date_yil= gmdate("Y", $time2); $sorgu = mysql_query("SELECT * from edel_sayac_gun ORDER BY gun DESC ", $connect) or die("Hata : ".mysql_error()); $sonuc = mysql_fetch_assoc($sorgu); if($date_a!=$sonuc[gun]){ $ayy=explode("-",$sonuc[gun]); if(intval($ayy[1])!=intval($date_ay)){ mysql_query("INSERT INTO edel_sayac_ay(gun,buay,toplam) VALUES('$date_a',0,('$sonuc[toplam]'))", $connect) or die("Hata : ".mysql_error()); mysql_query("INSERT INTO edel_sayac_gun(gun,bugun,buay,toplam) VALUES('$date_a',0,0,('$sonuc[toplam]'))", $connect) or die("Hata : ".mysql_error()); }else{ $sorgu = mysql_query("SELECT * from edel_sayac_ay ORDER BY gun DESC ", $connect) or die("Hata : ".mysql_error()); $sonuc = mysql_fetch_assoc($sorgu); mysql_query("UPDATE edel_sayac_ay SET gun='$date_a' WHERE id=$sonuc[id]", $connect) or die("Hata : ".mysql_error()); mysql_query("INSERT INTO edel_sayac_gun(gun,bugun,buay,toplam) VALUES('$date_a',0,('$sonuc[buay]'),('$sonuc[toplam]'))", $connect) or die("Hata : ".mysql_error()); } if(intval($ayy[0])!=intval($date_yil)){ mysql_query("INSERT INTO edel_sayac_yil(gun,toplam) VALUES('$date_a',('$sonuc[toplam]'))", $connect) or die("Hata : ".mysql_error()); }else{ $sorgu = mysql_query("SELECT * from edel_sayac_yil ORDER BY gun DESC ", $connect) or die("Hata : ".mysql_error()); $sonuc = mysql_fetch_assoc($sorgu); mysql_query("UPDATE edel_sayac_yil SET gun='$date_a' WHERE id=$sonuc[id]", $connect) or die("Hata : ".mysql_error()); } } $sorgu = mysql_query("SELECT id from edel_sayac_gun ORDER BY gun DESC ", $connect) or die("Hata : ".mysql_error()); $sonuc = mysql_fetch_assoc($sorgu); mysql_query("UPDATE edel_sayac_gun SET bugun=bugun+1 , buay=buay+1 , toplam=toplam+1 WHERE id=$sonuc[id]", $connect) or die("Hata : ".mysql_error()); $sorgu = mysql_query("SELECT * from edel_sayac_ay ORDER BY gun DESC ", $connect) or die("Hata : ".mysql_error()); $sonuc = mysql_fetch_assoc($sorgu); mysql_query("UPDATE edel_sayac_ay SET buay=buay+1 , toplam=toplam+1 WHERE id=$sonuc[id]", $connect) or die("Hata : ".mysql_error()); $sorgu = mysql_query("SELECT * from edel_sayac_yil ORDER BY gun DESC ", $connect) or die("Hata : ".mysql_error()); $sonuc = mysql_fetch_assoc($sorgu); mysql_query("UPDATE edel_sayac_yil SET toplam=toplam+1 WHERE id=$sonuc[id]", $connect) or die("Hata : ".mysql_error()); } $sorgu = mysql_query("SELECT * from edel_sayac_online WHERE oturum='$id2'", $connect) or die("Hata : ".mysql_error()); if(mysql_num_rows($sorgu)>0){ $sonuc = mysql_fetch_assoc($sorgu); mysql_query("UPDATE edel_sayac_online SET zaman=$time2 WHERE oturum='$id2'", $connect) or die("Hata : ".mysql_error()); } mysql_query("DELETE from edel_sayac_online WHERE zaman<$time2-600", $connect) or die("Hata : ".mysql_error()); ?> <?php include("footer.php"); ?>
Output for 7.0.0 - 7.1.0
Warning: include(fonksiyonlar.php): failed to open stream: No such file or directory in /in/h7jHR on line 3 Warning: include(): Failed opening 'fonksiyonlar.php' for inclusion (include_path='.:') in /in/h7jHR on line 3 Fatal error: Uncaught Error: Call to undefined function Ust() in /in/h7jHR:4 Stack trace: #0 {main} thrown in /in/h7jHR on line 4
Process exited with code 255.
Output for hhvm-3.12.0
Warning: File not found: fonksiyonlar.php in /in/h7jHR on line 3 Fatal error: Uncaught Error: Call to undefined function Ust() in /in/h7jHR:4 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.0
Warning: File not found: fonksiyonlar.php in /in/h7jHR on line 3 Fatal error: Call to undefined function Ust() in /in/h7jHR on line 4
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Warning: include(fonksiyonlar.php): failed to open stream: No such file or directory in /in/h7jHR on line 3 Warning: include(): Failed opening 'fonksiyonlar.php' for inclusion (include_path='.:') in /in/h7jHR on line 3 Fatal error: Call to undefined function Ust() in /in/h7jHR on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected $end in /in/h7jHR on line 483
Process exited with code 255.