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>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0160.00316.63
8.3.50.0160.00821.08
8.3.40.0110.00418.66
8.3.30.0130.00620.34
8.3.20.0040.00420.21
8.3.10.0080.00021.97
8.3.00.0080.00022.46
8.2.180.0100.00716.50
8.2.170.0040.01122.96
8.2.160.0030.01022.03
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0000.00820.80
8.2.110.0000.00922.16
8.2.100.0040.00817.84
8.2.90.0040.00419.17
8.2.80.0070.00019.21
8.2.70.0040.00417.50
8.2.60.0060.00318.04
8.2.50.0040.00418.07
8.2.40.0030.00519.88
8.2.30.0030.00519.50
8.2.20.0040.00417.78
8.2.10.0030.00517.80
8.2.00.0060.00317.80
8.1.280.0120.01225.92
8.1.270.0030.00623.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00623.79
8.1.230.0070.00419.14
8.1.220.0050.00317.79
8.1.210.0040.00418.77
8.1.200.0090.00017.48
8.1.190.0080.00017.41
8.1.180.0000.00819.14
8.1.170.0040.00418.77
8.1.160.0060.00318.93
8.1.150.0050.00218.68
8.1.140.0030.00617.45
8.1.130.0000.00717.75
8.1.120.0000.00717.47
8.1.110.0040.00417.51
8.1.100.0020.00517.40
8.1.90.0000.00717.43
8.1.80.0030.00317.36
8.1.70.0030.00317.47
8.1.60.0030.00617.47
8.1.50.0040.00417.51
8.1.40.0050.00317.52
8.1.30.0000.00717.63
8.1.20.0040.00417.70
8.1.10.0000.00817.57
8.1.00.0080.00017.58
8.0.300.0070.00018.77
8.0.290.0000.00717.16
8.0.280.0050.00318.45
8.0.270.0030.00317.23
8.0.260.0060.00016.89
8.0.250.0030.00316.89
8.0.240.0040.00416.95
8.0.230.0030.00316.95
8.0.220.0030.00316.92
8.0.210.0000.00816.85
8.0.200.0040.00416.95
8.0.190.0080.00016.85
8.0.180.0070.00016.91
8.0.170.0000.00816.95
8.0.160.0030.00316.94
8.0.150.0000.00716.81
8.0.140.0040.00416.88
8.0.130.0000.00513.35
8.0.120.0030.00716.88
8.0.110.0070.00016.96
8.0.100.0000.00716.89
8.0.90.0040.00416.70
8.0.80.0110.01116.93
8.0.70.0070.00016.85
8.0.60.0000.00816.76
8.0.50.0000.00716.84
8.0.30.0120.01117.27
8.0.20.0090.01017.40
8.0.10.0000.00716.83
8.0.00.0080.01016.72
7.4.330.0000.00515.06
7.4.320.0030.00316.36
7.4.300.0030.00316.55
7.4.290.0030.00316.62
7.4.280.0030.00316.57
7.4.270.0000.00716.53
7.4.260.0000.00513.26
7.4.250.0020.00516.41
7.4.240.0020.00616.50
7.4.230.0000.00716.34
7.4.220.0060.01216.48
7.4.210.0040.01316.57
7.4.200.0000.00716.66
7.4.190.0000.00716.40
7.4.160.0090.00616.41
7.4.150.0060.01417.40
7.4.140.0050.01317.86
7.4.130.0080.00916.50
7.4.120.0140.00816.48
7.4.110.0090.00916.58
7.4.100.0090.00916.49
7.4.90.0140.00516.61
7.4.80.0030.01919.39
7.4.70.0060.01116.36
7.4.60.0090.00916.38
7.4.50.0030.00616.41
7.4.40.0060.00622.77
7.4.30.0030.01316.41
7.4.00.0030.01014.93
7.3.330.0020.00213.36
7.3.320.0030.00313.35
7.3.310.0000.00716.17
7.3.300.0000.00716.16
7.3.290.0130.00716.20
7.3.280.0050.01116.23
7.3.270.0140.00317.40
7.3.260.0160.00516.28
7.3.250.0110.00716.19
7.3.240.0060.01016.54
7.3.230.0090.01616.39
7.3.210.0070.01016.42
7.3.200.0060.01219.39
7.3.190.0100.00716.26
7.3.180.0090.00616.21
7.3.170.0060.00916.40
7.3.160.0070.01416.46
7.3.120.0070.00714.72
7.3.10.0200.00716.20
7.3.00.0190.00315.84
7.2.330.0110.00716.27
7.2.320.0030.01316.68
7.2.310.0030.01316.34
7.2.300.0080.00816.47
7.2.290.0040.01316.45
7.2.130.0170.00716.48
7.2.120.0100.00316.44
7.2.110.0160.01016.22
7.2.100.0100.01016.29
7.2.90.0070.02016.27
7.2.80.0100.01016.64
7.2.70.0180.01116.78
7.2.60.0070.01016.85
7.2.50.0130.01316.82
7.2.40.0100.00816.41
7.2.30.0060.01416.07
7.2.20.0150.00416.12
7.2.10.0140.00316.27
7.2.00.0190.01116.46
7.1.250.0240.00715.57
7.1.200.0110.00315.58
7.1.70.0090.00017.07
7.1.60.0080.00317.18
7.1.50.0070.01616.86
7.1.00.0030.07722.45
7.0.200.0100.00716.64
7.0.140.0000.07021.99
7.0.100.0100.05319.99
7.0.90.0070.04019.98
7.0.80.0000.04719.89
7.0.70.0170.05319.97
7.0.60.0100.04319.98
7.0.50.0130.04320.36
7.0.40.0130.07720.14
7.0.30.0070.08720.14
7.0.20.0170.07720.17
7.0.10.0070.05320.16
7.0.00.0100.07020.12
5.6.280.0000.07721.13
5.6.250.0130.07020.58
5.6.240.0100.05720.66
5.6.230.0070.08020.61
5.6.220.0100.04720.64
5.6.210.0070.06720.76
5.6.200.0130.07321.02
5.6.190.0070.08021.00
5.6.180.0100.07020.95
5.6.170.0100.04721.09
5.6.160.0070.07721.07
5.6.150.0070.05321.05
5.6.140.0100.08321.10
5.6.130.0100.06021.07
5.6.120.0070.08321.03
5.6.110.0070.07721.14
5.6.100.0000.05321.04
5.6.90.0130.07721.07
5.6.80.0130.06320.32
5.6.70.0070.04320.48
5.6.60.0170.06720.47
5.6.50.0070.04320.46
5.6.40.0000.07320.33
5.6.30.0130.03320.39
5.6.20.0100.05720.43
5.6.10.0130.06320.32
5.6.00.0100.05720.39
5.5.380.0200.04320.42
5.5.370.0100.07720.50
5.5.360.0170.06720.41
5.5.350.0100.08320.35
5.5.340.0130.03320.87
5.5.330.0070.04720.79
5.5.320.0100.06020.90
5.5.310.0030.05020.84
5.5.300.0130.08320.94
5.5.290.0070.08720.84
5.5.280.0130.04320.84
5.5.270.0030.04720.79
5.5.260.0030.04320.88
5.5.250.0070.07020.60
5.5.240.0200.02720.23
5.5.230.0070.07020.13
5.5.220.0070.05020.27
5.5.210.0030.07720.20
5.5.200.0130.06320.23
5.5.190.0030.04320.13
5.5.180.0070.06720.22
5.5.160.0030.04020.12
5.5.150.0000.04320.16
5.5.140.0030.04020.23
5.5.130.0130.06020.16
5.5.120.0070.05020.13
5.5.110.0100.06720.25
5.5.100.0170.05720.09
5.5.90.0030.03720.11
5.5.80.0100.07020.08
5.5.70.0200.06020.13
5.5.60.0000.04320.07
5.5.50.0100.05019.97
5.5.40.0100.06320.16
5.5.30.0100.07720.15
5.5.20.0030.05720.07
5.5.10.0100.05020.05
5.5.00.0030.04320.02
5.4.450.0100.07719.56
5.4.440.0070.08019.45
5.4.430.0030.08319.36
5.4.420.0070.05319.35
5.4.410.0030.04019.14
5.4.400.0100.06718.88
5.4.390.0130.03718.94
5.4.380.0000.05319.00
5.4.370.0100.07019.18
5.4.360.0000.08319.23
5.4.350.0070.03718.87
5.4.340.0100.06318.90
5.4.320.0200.06719.18
5.4.310.0000.08319.21
5.4.300.0070.04018.84
5.4.290.0030.04319.23
5.4.280.0000.04719.17
5.4.270.0030.06019.04
5.4.260.0100.04018.84
5.4.250.0100.07019.24
5.4.240.0030.07019.13
5.4.230.0000.08319.13
5.4.220.0000.07019.02
5.4.210.0070.06318.89
5.4.200.0130.06319.12
5.4.190.0030.05019.20
5.4.180.0070.04018.86
5.4.170.0100.04719.02
5.4.160.0030.04719.11
5.4.150.0030.08319.21
5.4.140.0000.05016.46
5.4.130.0130.07016.42
5.4.120.0100.06016.36
5.4.110.0070.07316.50
5.4.100.0130.06716.51
5.4.90.0000.07316.51
5.4.80.0030.03716.48
5.4.70.0100.04316.37
5.4.60.0170.06016.36
5.4.50.0070.07016.30
5.4.40.0070.06016.53
5.4.30.0130.06716.37
5.4.20.0070.03716.36
5.4.10.0100.06316.33
5.4.00.0100.05015.86
5.3.290.0030.05014.68
5.3.280.0100.07714.72
5.3.270.0030.07014.57
5.3.260.0030.05314.64
5.3.250.0070.06014.64
5.3.240.0100.07014.65
5.3.230.0130.06014.63
5.3.220.0070.05314.46
5.3.210.0030.05714.63
5.3.200.0070.07714.70
5.3.190.0100.03314.51
5.3.180.0070.04714.55
5.3.170.0100.06314.57
5.3.160.0000.07714.64
5.3.150.0100.07714.52
5.3.140.0130.06314.52
5.3.130.0030.07714.56
5.3.120.0070.04014.57
5.3.110.0070.07314.55
5.3.100.0030.07314.19
5.3.90.0030.06714.09
5.3.80.0130.06314.11
5.3.70.0130.05014.16
5.3.60.0130.06714.10
5.3.50.0030.04313.88
5.3.40.0030.07713.99
5.3.30.0130.06713.90
5.3.20.0170.03013.68
5.3.10.0030.03713.67
5.3.00.0070.03713.56
5.2.170.0100.03312.53
5.2.160.0030.06312.53
5.2.150.0070.06012.53
5.2.140.0030.04312.53
5.2.130.0030.03012.53
5.2.120.0100.02312.53
5.2.110.0030.02712.53
5.2.100.0030.02712.53
5.2.90.0000.03312.53
5.2.80.0030.03012.53
5.2.70.0000.03312.53
5.2.60.0000.03312.53
5.2.50.0000.03012.53
5.2.40.0000.03012.53
5.2.30.0000.03012.53
5.2.20.0000.02712.53
5.2.10.0030.02012.53
5.2.00.0030.03012.53
5.1.60.0030.02312.53
5.1.50.0070.04012.53
5.1.40.0030.02712.53
5.1.30.0000.02712.53
5.1.20.0000.02312.53
5.1.10.0070.02312.53
5.1.00.0070.02312.53
5.0.50.0000.02312.53
5.0.40.0000.02012.53
5.0.30.0000.03712.53
5.0.20.0000.01712.53
5.0.10.0000.02312.53
5.0.00.0000.04312.53
4.4.90.0000.01712.53
4.4.80.0030.01312.53
4.4.70.0000.01712.53
4.4.60.0000.01712.53
4.4.50.0000.01312.53
4.4.40.0000.02312.53
4.4.30.0000.01712.53
4.4.20.0000.02312.53
4.4.10.0000.01312.53
4.4.00.0000.03312.53
4.3.110.0070.01012.53
4.3.100.0000.01312.53
4.3.90.0000.02012.53
4.3.80.0000.02312.53
4.3.70.0000.01312.53
4.3.60.0000.01712.53
4.3.50.0000.01312.53
4.3.40.0000.02312.53
4.3.30.0030.01012.53
4.3.20.0000.01712.53
4.3.10.0030.01312.53
4.3.00.0030.01312.53

preferences:
43.24 ms | 401 KiB | 5 Q