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>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 68
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 62, Position 2 = 64
Branch analysis from position: 62
1 jumps found. (Code = 42) Position 1 = 65
Branch analysis from position: 65
1 jumps found. (Code = 42) Position 1 = 68
Branch analysis from position: 68
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 64
1 jumps found. (Code = 42) Position 1 = 68
Branch analysis from position: 68
Branch analysis from position: 68
Found catch point at position: 66
Branch analysis from position: 66
2 jumps found. (Code = 107) Position 1 = 67, Position 2 = -2
Branch analysis from position: 67
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BX0Ig
function name:  (null)
number of ops:  70
compiled vars:  !0 = $ad, !1 = $soyad, !2 = $dogum_yili, !3 = $tc_no, !4 = $veriler, !5 = $baglan, !6 = $sonuc, !7 = $hata
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_IS                                         ~8      '_POST'
          1        ISSET_ISEMPTY_DIM_OBJ                         0          ~8, 'tc_no'
          2      > JMPZ                                                     ~9, ->68
    4     3    >   INIT_FCALL                                               'header'
          4        SEND_VAL                                                 'Content-type%3A+text%2Fhtml%3B+charset%3Dutf-8'
          5        DO_ICALL                                                 
    6     6        INIT_FCALL                                               'strtoupper'
          7        INIT_FCALL_BY_NAME                                       'karakter_duzeltme'
          8        INIT_FCALL                                               'trim'
          9        FETCH_R                      global              ~11     '_POST'
         10        FETCH_DIM_R                                      ~12     ~11, 'ad'
         11        SEND_VAL                                                 ~12
         12        DO_ICALL                                         $13     
         13        SEND_VAR_NO_REF_EX                                       $13
         14        DO_FCALL                                      0  $14     
         15        SEND_VAR                                                 $14
         16        DO_ICALL                                         $15     
         17        ASSIGN                                                   !0, $15
    7    18        INIT_FCALL                                               'strtoupper'
         19        INIT_FCALL_BY_NAME                                       'karakter_duzeltme'
         20        INIT_FCALL                                               'trim'
         21        FETCH_R                      global              ~17     '_POST'
         22        FETCH_DIM_R                                      ~18     ~17, 'soyad'
         23        SEND_VAL                                                 ~18
         24        DO_ICALL                                         $19     
         25        SEND_VAR_NO_REF_EX                                       $19
         26        DO_FCALL                                      0  $20     
         27        SEND_VAR                                                 $20
         28        DO_ICALL                                         $21     
         29        ASSIGN                                                   !1, $21
    8    30        INIT_FCALL                                               'trim'
         31        FETCH_R                      global              ~23     '_POST'
         32        FETCH_DIM_R                                      ~24     ~23, 'dogum_yili'
         33        SEND_VAL                                                 ~24
         34        DO_ICALL                                         $25     
         35        ASSIGN                                                   !2, $25
    9    36        INIT_FCALL                                               'trim'
         37        FETCH_R                      global              ~27     '_POST'
         38        FETCH_DIM_R                                      ~28     ~27, 'tc_no'
         39        SEND_VAL                                                 ~28
         40        DO_ICALL                                         $29     
         41        ASSIGN                                                   !3, $29
   10    42        INIT_FCALL                                               'settype'
         43        SEND_REF                                                 !3
         44        SEND_VAL                                                 'double'
         45        DO_ICALL                                                 
   14    46        INIT_ARRAY                                       ~32     !3, 'TCKimlikNo'
   15    47        ADD_ARRAY_ELEMENT                                ~32     !0, 'Ad'
   16    48        ADD_ARRAY_ELEMENT                                ~32     !1, 'Soyad'
   17    49        ADD_ARRAY_ELEMENT                                ~32     !2, 'DogumYili'
   13    50        ASSIGN                                                   !4, ~32
   20    51        NEW                                              $34     'SoapClient'
         52        SEND_VAL_EX                                              'https%3A%2F%2Ftckimlik.nvi.gov.tr%2FService%2FKPSPublic.asmx%3FWSDL'
         53        DO_FCALL                                      0          
         54        ASSIGN                                                   !5, $34
   21    55        INIT_METHOD_CALL                                         !5, 'TCKimlikNoDogrula'
         56        SEND_VAR_EX                                              !4
         57        DO_FCALL                                      0  $37     
         58        ASSIGN                                                   !6, $37
   23    59        FETCH_OBJ_R                                      ~39     !6, 'TCKimlikNoDogrulaResult'
         60        IS_EQUAL                                                 ~39, 1
         61      > JMPZ                                                     ~40, ->64
   24    62    >   ECHO                                                     'T.C+Kimlik+Numaras%C4%B1+Do%C4%9Fru+%21'
         63      > JMP                                                      ->65
   26    64    >   ECHO                                                     'T.C+Kimlik+Numaras%C4%B1+Yanl%C4%B1%C5%9F+%21'
         65    > > JMP                                                      ->68
   29    66  E > > CATCH                                       last         'Exception'
   30    67    >   ECHO                                                     'T.C+Kimlik+Numaras%C4%B1+Bulunmamaktad%C4%B1r...'
   40    68    >   ECHO                                                     '%3C%21DOCTYPE+html%3E%0A%3Chtml%3E%0A%3Chead%3E%0A%3Cmeta+http-equiv%3D%22Content-Type%22+content%3D%22text%2Fhtml%3Bcharset%3DUTF-8%22+%2F%3E%0A%3Ctitle%3ET.C+Kimlik+No+Sorgulama%3C%2Ftitle%3E%0A%3C%2Fhead%3E%0A%3Cbody%3E%0A+%0A%3Cform+action%3D%22%22+method%3D%22post%22%3E%0AAd%3A%3Cdiv%3E%3Cinput+type%3D%22text%22+name%3D%22ad%22+%2F%3E%3C%2Fdiv%3E%0ASoyad%3A%3Cdiv%3E%3Cinput+type%3D%22text%22+name%3D%22soyad%22+%2F%3E%3C%2Fdiv%3E%0ADo%C4%9Fum+Y%C4%B1l%C4%B1%3A%3Cdiv%3E%3Cinput+type%3D%22text%22+name%3D%22dogum_yili%22+%2F%3E%3C%2Fdiv%3E%0AT.C+No%3A%3Cdiv%3E%3Cinput+type%3D%22text%22+name%3D%22tc_no%22+%2F%3E%3C%2Fdiv%3E%0A%3Cinput+type%3D%22submit%22+value%3D%22Sorgula%22+%2F%3E%0A%3C%2Fform%3E%0A+%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   57    69      > RETURN                                                   1

Function karakter_duzeltme:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BX0Ig
function name:  karakter_duzeltme
number of ops:  10
compiled vars:  !0 = $gelen, !1 = $karakterler, !2 = $degistir
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   34     0  E >   RECV                                             !0      
   35     1        ASSIGN                                                   !1, <array>
   36     2        ASSIGN                                                   !2, <array>
   37     3        INIT_FCALL                                               'str_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8      > RETURN                                                   $5
   38     9*     > RETURN                                                   null

End of function karakter_duzeltme

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.63 ms | 1404 KiB | 23 Q