3v4l.org

run code in 300+ PHP versions simultaneously
<?php include("../class/db.class.php"); $adsoyad=strip_tags(trim($_POST['adsoyad'])); $zdmail=strip_tags(trim($_POST['email'])); $zdmesaj=strip_tags(trim($_POST['mesaj'])); $mesajtarih=date("d.m.Y H:i:s"); $mesajip=$_SERVER['REMOTE_ADDR']; $ipsql="SELECT ip FROM zdefter where ip='$mesajip'"; $ipkontrol=$db->baglanti->query($ipsql)->rowCount(); if($ipkontrol>0){echo"ipvar";}else{ if($adsoyad=="" or $zdmail=="" or $zdmesaj==""){echo"formbos";}else{ $sql="insert into zdefter(adsoyad,email,mesaj,ip,tarih)values('$adsoyad','$zdmail','$zdmesaj','$mesajip','$mesajtarih')"; $db->baglanti->exec($sql); echo"eklendi"; } } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: include(): open_basedir restriction in effect. File(../class/db.class.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/jhXQb on line 3 Warning: include(../class/db.class.php): Failed to open stream: Operation not permitted in /in/jhXQb on line 3 Warning: include(): Failed opening '../class/db.class.php' for inclusion (include_path='.:') in /in/jhXQb on line 3 Warning: Undefined array key "adsoyad" in /in/jhXQb on line 5 Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /in/jhXQb on line 5 Warning: Undefined array key "email" in /in/jhXQb on line 6 Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /in/jhXQb on line 6 Warning: Undefined array key "mesaj" in /in/jhXQb on line 7 Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /in/jhXQb on line 7 Warning: Undefined array key "REMOTE_ADDR" in /in/jhXQb on line 9 Warning: Undefined variable $db in /in/jhXQb on line 11 Warning: Attempt to read property "baglanti" on null in /in/jhXQb on line 11 Fatal error: Uncaught Error: Call to a member function query() on null in /in/jhXQb:11 Stack trace: #0 {main} thrown in /in/jhXQb on line 11
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
43.65 ms | 402 KiB | 8 Q