3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(isset($_POST["tc_no"])){ header("Content-type: text/html; charset=utf-8"); $ad = strtoupper(karakter_duzeltme(trim($_POST["ad"]))); $soyad = strtoupper(karakter_duzeltme(trim($_POST["soyad"]))); $dogum_yili = trim($_POST["dogum_yili"]); $tc_no = trim($_POST["tc_no"]); settype($tc_no, "double"); try { $veriler = array( "TCKimlikNo" => $tc_no, "Ad" => $ad, "Soyad" => $soyad, "DogumYili" => $dogum_yili ); $baglan = new SoapClient("https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx?WSDL"); $sonuc = $baglan->TCKimlikNoDogrula($veriler); if ($sonuc->TCKimlikNoDogrulaResult == 1){ echo 'T.C Kimlik Numarası Doğru !'; } else { echo 'T.C Kimlik Numarası Yanlış !'; } } catch (Exception $hata){ echo 'T.C Kimlik Numarası Bulunmamaktadır...'; } } function karakter_duzeltme($gelen){ $karakterler = array("ç","ğ","ı","i","ö","ş","ü"); $degistir = array("Ç","Ğ","I","İ","Ö","Ş","Ü"); return str_replace($karakterler, $degistir, $gelen); } ?> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title>T.C Kimlik No Sorgulama</title> </head> <body> <form action="" method="post"> Ad:<div><input type="text" name="ad" /></div> Soyad:<div><input type="text" name="soyad" /></div> Doğum Yılı:<div><input type="text" name="dogum_yili" /></div> T.C No:<div><input type="text" name="tc_no" /></div> <input type="submit" value="Sorgula" /> </form> </body> </html>
Output for git.master, git.master_jit, rfc.property-hooks
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title>T.C Kimlik No Sorgulama</title> </head> <body> <form action="" method="post"> Ad:<div><input type="text" name="ad" /></div> Soyad:<div><input type="text" name="soyad" /></div> Doğum Yılı:<div><input type="text" name="dogum_yili" /></div> T.C No:<div><input type="text" name="tc_no" /></div> <input type="submit" value="Sorgula" /> </form> </body> </html>

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:
36.52 ms | 402 KiB | 8 Q