3v4l.org

run code in 300+ PHP versions simultaneously
<?php # DOHVAT IP ADRESE NOVOG KUPCA # # ============================ # $IP = $_SERVER['REMOTE_ADDR']; # PROVJERA CENTILI IP ADRESE # # ========================== # if($IP != "193.105.74.44" && $IP != "193.105.74.47") { header("HTTP/1.1 406 Not acceptable"); echo("Zahtjev za naplatu nije poslan sa Centili IP adrese!"); mail("info@cent-sms-sender.ru", "PROBLEM: NEPOZNATA IP ADRESA", "ZAHTJEV NIJE POSLAN SA CENTILI IP ADRESE NEGO SA: $IP !"); exit; } # PREUZIMAM 5 ULAZNIH VARIJABLI # # ============================= # $NA = trim($_POST["phone"]); $servis = trim($_POST["service"]); $UlaznaCijena = trim($_POST["enduserprice"]); $status = strtolower(trim($_POST["status"])); $Country = strtoupper(trim($_POST["country"])); # PROVJERA IDENTIFIKACIJE CENTILI SERVISA # # ======================================= # if($servis != "d808f98d1ea6c7fece480ed28518f69f") { header("HTTP/1.1 406 Not acceptable"); echo("Zahtjev nije poslan sa nasega Centili servisa!"); mail("info@cent-sms-sender.ru", "PROBLEM: NEPOZNAT CENTILI SERVIS", "ZAHTJEV NIJE POSLAN SA SIFRE MOG CENTILI SERVISA!"); exit; } # DEFINIRAM VALUTU IZ KODA DRŽAVE # # =============================== # if($Country == "HR") { $Valuta = "HRK"; } else if($Country == "RS") { $Valuta = "RSD"; } else if($Country == "BA") { $Valuta = "BAM"; } else if($Country == "ME") { $Valuta = "EUR"; } else { $Valuta = "???"; } # PROVJERA STATUSA UPLATE # # ======================= # if($status != "success") { header("HTTP/1.1 406 Not acceptable"); $NA = substr_replace($NA , "XXXX", 5,4); mail("info@cent-sms-sender.ru", "ALERT", "CENTILI STATUS NIJE UREDAN - KUPAC: $NA SE PREDOMISLIO!"); exit; } # DOHVAT REDNOG BROJA ZAHTJEVA I POMAK ZA JEDAN # # ============================================= # $RB = file_get_contents("rednibroj.txt"); settype($RB,"integer"); $RB = $RB + 1; if($RB >= 61) $RB = 1; # DOHVAT PIN KODA IZ MOJE BAZE # # ============================ # if($RB == 1) $PIN = "AA-18-99Q"; if($RB == 2) $PIN = "AA-20-Q6T"; if($RB == 3) $PIN = "AA-22-8X8"; if($RB == 4) $PIN = "AA-25-9AB"; if($RB == 5) $PIN = "AA-26-CVV"; if($RB == 6) $PIN = "AA-28-6WJ"; if($RB == 7) $PIN = "AA-34-58Q"; if($RB == 8) $PIN = "AA-36-W28"; if($RB == 9) $PIN = "AA-40-K4Q"; if($RB == 10) $PIN = "AA-45-L4T"; if($RB == 11) $PIN = "AA-46-7F5"; if($RB == 12) $PIN = "AA-47-Z9R"; if($RB == 13) $PIN = "AA-50-I8Z"; if($RB == 14) $PIN = "AA-55-U47"; if($RB == 15) $PIN = "AA-58-47U"; if($RB == 16) $PIN = "AA-60-DNK"; if($RB == 17) $PIN = "AA-63-W38"; if($RB == 18) $PIN = "AA-68-28B"; if($RB == 19) $PIN = "AA-70-J6G"; if($RB == 20) $PIN = "AA-71-F40"; if($RB == 21) $PIN = "AA-74-YXC"; if($RB == 22) $PIN = "AA-77-8TT"; if($RB == 23) $PIN = "AA-85-H6K"; if($RB == 24) $PIN = "AA-88-3FZ"; if($RB == 25) $PIN = "AA-95-D2E"; if($RB == 26) $PIN = "AA-95-X7Y"; if($RB == 27) $PIN = "AA-98-GHG"; if($RB == 28) $PIN = "AA-99-R5S"; if($RB == 29) $PIN = "AA-AB-001"; if($RB == 30) $PIN = "AA-AS-4EB"; if($RB == 31) $PIN = "AA-BA-17F"; if($RB == 32) $PIN = "AA-C7-1M8"; if($RB == 33) $PIN = "AA-CR-234"; if($RB == 34) $PIN = "AA-F1-ABA"; if($RB == 35) $PIN = "AA-G2-R85"; if($RB == 36) $PIN = "AA-HV-68G"; if($RB == 37) $PIN = "AA-KJ-587"; if($RB == 38) $PIN = "AA-KR-87G"; if($RB == 39) $PIN = "AA-L2-M58"; if($RB == 40) $PIN = "AA-L4-P24"; if($RB == 41) $PIN = "AA-N9-T95"; if($RB == 42) $PIN = "AA-OP-UTF"; if($RB == 43) $PIN = "AA-QL-G4A"; if($RB == 44) $PIN = "AA-T3-DD6"; if($RB == 45) $PIN = "AA-TA-A42"; if($RB == 46) $PIN = "AA-UP-9TT"; if($RB == 47) $PIN = "AA-W5-Z55"; if($RB == 48) $PIN = "AA-WQ-P6T"; if($RB == 49) $PIN = "AA-Y5-K3K"; if($RB == 50) $PIN = "AA-ZA-15R"; if($RB == 51) $PIN = "AA-ZB-18A"; if($RB == 52) $PIN = "AA-ZC-19W"; if($RB == 53) $PIN = "AA-ZD-20U"; if($RB == 54) $PIN = "AA-ZE-25Q"; if($RB == 55) $PIN = "AA-ZF-30Z"; if($RB == 56) $PIN = "AA-ZG-34Y"; if($RB == 57) $PIN = "AA-ZH-40C"; if($RB == 58) $PIN = "AA-ZK-58K"; if($RB == 59) $PIN = "AA-ZM-65V"; if($RB == 60) $PIN = "AA-ZR-74G"; # PUNIM VARIJABLE ZA PORUKU O UPLATI # # ================================== # $tmp = "Dostava PIN koda: $PIN"; $poruka = urlencode($tmp); # ŠALJEM SMS PORUKU KUPCU SA NJEGOVIM PIN KODOM # # PRIJE TOGA DEFINIRAM IZNIMKU SAMO ZA BH MOBILE# # ============================================= # if(substr($NA,0,5) == "38760") { $BulkURL = "username=dgenadij&password=#Bulk2016#&repliable=0&sender=centSMS&routing_group=1&message=".$poruka."&msisdn=".$NA; } else { $BulkURL = "username=dgenadij&password=#Bulk2016#&repliable=0&sender=387644210673&routing_group=1&message=".$poruka."&msisdn=".$NA; } $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,"https://bulksms.vsms.net/eapi/submission/send_sms/2/2.0"); curl_setopt($ch,CURLOPT_POSTFIELDS,$BulkURL); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt ($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,10); curl_setopt($ch, CURLOPT_FRESH_CONNECT,1); curl_setopt($ch, CURLOPT_TIMEOUT,30); curl_setopt($ch,CURLOPT_HEADER,false); $REZ = curl_exec($ch); curl_close($ch); $BulkStatus=substr($REZ, 0, strpos($REZ, "|")); if($BulkStatus != 0) { mail("info@cent-sms-sender.ru","UPOZORENJE ZBOG NESLANJA PIN KODA","NIJE ISPORUCENA SMA PORUKA OBAVIJESTI:<br> $poruka !"); } # PREPISUJEM ŠTITEĆI ANONIMNOST # # ============================= # $NA = substr_replace($NA , "XXXX", 5,4); # POHRANA NOVOG REDNOG BROJA ZAHTJEVA # # =================================== # settype($RB,"string"); file_put_contents("rednibroj.txt", $RB); # PODEŠAVAM STANJE RAČUNA NOVOGA KORISNIKA # # MANIPULACIJOM PREKO STANJA SPEND DATOTEKE # # ========================================= # # REPUBLIKA SRBIJA # if($Country == "RS" && $UlaznaCijena == "30.000") { $IzlaznaCijena = "0.40"; } else if($UlaznaCijena == "60.000") { $IzlaznaCijena = "0.35"; } else if($UlaznaCijena == "180.000") { $IzlaznaCijena = "0.00"; } else if($UlaznaCijena == "840.000") { $IzlaznaCijena = "-2.00"; } # REPUBLIKA CRNA GORA # else if($UlaznaCijena == "0.510") { $IzlaznaCijena = "0.35"; } else if($UlaznaCijena == "1.020") { $IzlaznaCijena = "0.20"; } else if($UlaznaCijena == "3.050") { $IzlaznaCijena = "-0.50"; } # REPUBLIKA HRVATSKA # else if($UlaznaCijena == "3.500") { $IzlaznaCijena = "0.35"; } else if($UlaznaCijena == "10.000") { $IzlaznaCijena = "0.00"; } else if($Country == "HR" && $UlaznaCijena == "30.000") { $IzlaznaCijena = "-1.00"; } # REPUBLIKA BiH # else if($UlaznaCijena == "0.940") { $IzlaznaCijena = "0.35"; } else if($UlaznaCijena == "2.340") { $IzlaznaCijena = "0.00"; } else if($UlaznaCijena == "3.510") { $IzlaznaCijena = "-0.15"; } # AKO CENTILI UKLONI POSTOJEĆU CIJENU # # PODESITI 0.50 € I POSLATI UPOZORENJE # else { $IzlaznaCijena = "0.00"; mail("info@cent-sms-sender.ru","UPOZORENJE ZBOG CENTILI PROMJENE","PROVJERITI JE LI CENTILI MOZDA UKLONIO POSTOJECU CIJENU: $UlaznaCijena !"); } $URL = "/home/centsmss/public_html/".$PIN."/user-spend.txt"; $fp = fopen($URL, "w"); fwrite($fp, $IzlaznaCijena); fclose ($fp); # POHRANJUJEM ROK VAŽENJA KORIŠTENJA APLIKACIJE # # ============================================= # $date1 = strtotime(date('d.m.Y')); # LICENCA VAŽI DO PONOĆI # if($Country == "RS" && $UlaznaCijena == "30.000") { $date2 = strtotime("+0 day", $date1); } # LICENCA VAŽI 3 DANA # else if($UlaznaCijena == "3.500" || $UlaznaCijena == "0.940" || $UlaznaCijena == "60.000" || $UlaznaCijena == "0.510") { $date2 = strtotime("+3 day", $date1); } # LICENCA VAŽI 10 DANA # else if($UlaznaCijena == "10.000" || $UlaznaCijena == "180.000" || $UlaznaCijena == "2.340" || $UlaznaCijena == "1.020") { $date2 = strtotime("+10 day", $date1); } # LICENCA VAŽI 30 DANA # else if($UlaznaCijena == "840.000" || $UlaznaCijena == "30.000" || $UlaznaCijena == "3.510" || $UlaznaCijena == "3.050") { $date2 = strtotime("+30 day", $date1); } else { $date2 = strtotime("+1 day", $date1); mail("info@cent-sms-sender.ru","UPOZORENJE ZBOG CENTILI NELOGICNOSTI","PROVJERITI ZASTO NIJE PRONADJENA ULAZNA CIJENA: $UlaznaCijena !"); } $ROK = date('d.m.Y', $date2); $URL = "/home/centsmss/public_html/".$PIN."/user-valid.txt"; $fp = fopen($URL, "w"); fwrite($fp, $ROK); fclose ($fp); # ŠALJEM SAM SEBI E-MAIL OBAVIJEST # # ================================ # mail("info@cent-sms-sender.ru","$RB. CENTILI UPLATA!","KUPLJEN PIN KOD: $PIN PREMA GSM BROJU: $NA PO CIJENI: $UlaznaCijena $Valuta !"); # VRAĆAM STATUS CENTILI NOTIFIKACIJE # # ================================== # header("HTTP/1.1 200 Ok");

Abusive script

This script was stopped while abusing our resources

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.110.0030.00920.94
8.3.100.0060.00324.06
8.3.90.0070.01326.77
8.3.80.0000.00917.97
8.3.70.0110.00716.88
8.3.60.0120.00317.00
8.3.50.0170.00822.05
8.3.40.0120.00318.94
8.3.30.0090.00618.88
8.3.20.0030.00519.02
8.3.10.0040.00421.85
8.3.00.0050.00320.95
8.2.230.0040.00822.58
8.2.220.0090.00037.54
8.2.210.0060.00326.77
8.2.200.0090.00018.54
8.2.190.0130.00318.82
8.2.180.0060.00916.50
8.2.170.0000.01422.96
8.2.160.0110.01119.51
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0040.00422.08
8.2.120.0040.00426.35
8.2.110.0000.00919.57
8.2.100.0090.00317.97
8.2.90.0030.00518.16
8.2.80.0050.00319.89
8.2.70.0060.00318.05
8.2.60.0000.00818.13
8.2.50.0080.00018.10
8.2.40.0040.00420.76
8.2.30.0060.00320.83
8.2.20.0050.00318.05
8.2.10.0050.00318.20
8.2.00.0000.00818.35
8.1.290.0110.00030.84
8.1.280.0070.01425.92
8.1.270.0110.01123.64
8.1.260.0030.00528.09
8.1.250.0060.00328.09
8.1.240.0000.00923.82
8.1.230.0060.00621.01
8.1.220.0000.00817.86
8.1.210.0000.00819.21
8.1.200.0000.00917.48
8.1.190.0050.00317.36
8.1.180.0080.00018.10
8.1.170.0050.00320.65
8.1.160.0030.00619.13
8.1.150.0000.00919.07
8.1.140.0050.00319.76
8.1.130.0030.00317.87
8.1.120.0070.00017.66
8.1.110.0000.00717.60
8.1.100.0030.00617.56
8.1.90.0050.00317.63
8.1.80.0020.00517.55
8.1.70.0000.00717.58
8.1.60.0000.00917.77
8.1.50.0000.00817.76
8.1.40.0030.00617.70
8.1.30.0030.00517.70
8.1.20.0060.00317.73
8.1.10.0080.00017.53
8.1.00.0080.00017.68
8.0.300.0000.00919.88
8.0.290.0040.00417.00
8.0.280.0030.00318.59
8.0.270.0000.00717.43
8.0.260.0030.00317.35
8.0.250.0030.00517.07
8.0.240.0000.00717.23
8.0.230.0030.00517.21
8.0.220.0040.00417.05
8.0.210.0040.00417.02
8.0.200.0000.00717.15
8.0.190.0040.00417.20
8.0.180.0050.00217.13
8.0.170.0040.00417.18
8.0.160.0040.00417.14
8.0.150.0070.00017.09
8.0.140.0080.00017.07
8.0.130.0030.00313.61
8.0.120.0040.00417.12
8.0.110.0000.00717.04
8.0.100.0060.00316.99
8.0.90.0040.00417.09
8.0.80.0060.01017.05
8.0.70.0040.00417.19
8.0.60.0040.00417.03
8.0.50.0000.00717.19
8.0.30.0120.00617.28
8.0.20.0120.00817.40
8.0.10.0060.00317.31
8.0.00.0160.00516.93
7.4.330.0050.00015.08
7.4.320.0000.00716.77
7.4.300.0030.00316.80
7.4.290.0030.00316.72
7.4.280.0040.00416.78
7.4.270.0040.00416.79
7.4.260.0070.00016.65
7.4.250.0030.00616.50
7.4.240.0040.00416.79
7.4.230.0050.00316.80
7.4.220.0100.01716.71
7.4.210.0060.00916.64
7.4.200.0040.00416.57
7.4.160.0060.00916.56
7.4.150.0120.00617.40
7.4.140.0090.01217.86
7.4.130.0050.01216.79
7.4.120.0080.00816.75
7.4.110.0070.01016.59
7.4.100.0140.00316.76
7.4.90.0060.01316.54
7.4.80.0030.01419.39
7.4.70.0140.00316.69
7.4.60.0070.01116.71
7.4.50.0030.01216.64
7.4.40.0130.00916.89
7.4.30.0090.01516.82
7.4.00.0100.00715.29
7.3.330.0000.00513.40
7.3.320.0000.00613.46
7.3.310.0030.00316.53
7.3.300.0000.00716.53
7.3.290.0060.01116.51
7.3.280.0040.01516.51
7.3.270.0130.00717.40
7.3.260.0060.01316.78
7.3.250.0090.01016.51
7.3.240.0100.01216.56
7.3.230.0000.02416.57
7.3.210.0120.00616.59
7.3.200.0160.00016.83
7.3.190.0090.00616.66
7.3.180.0090.00816.55
7.3.170.0130.01116.45
7.3.160.0060.01016.83
7.3.10.0070.00416.79
7.3.00.0070.00716.64
7.2.330.0110.00716.69
7.2.320.0170.00316.83
7.2.310.0190.00316.54
7.2.300.0100.00716.87
7.2.290.0100.01016.72
7.2.130.0060.00616.87
7.2.120.0040.01516.77
7.2.110.0100.00616.70
7.2.100.0030.00716.85
7.2.90.0070.00717.01
7.2.80.0120.00316.61
7.2.70.0060.00916.96
7.2.60.0060.00916.78
7.2.50.0070.00316.49
7.2.40.0040.01417.07
7.2.30.0060.00917.02
7.2.20.0060.00616.84
7.2.10.0100.00017.09
7.2.00.0060.00818.20
7.1.250.0090.00615.80
7.1.200.0000.01215.80
7.1.100.0050.00517.63
7.1.70.0000.00916.82
7.1.60.0000.01220.41
7.1.00.0000.08022.44
7.0.200.0470.00914.56
7.0.100.0170.05320.06
7.0.90.0130.04320.13
7.0.80.0170.04020.03
7.0.70.0230.05719.98
7.0.60.0300.06019.94
7.0.50.0200.04320.49
7.0.40.0000.04320.02
7.0.30.0030.04320.09
7.0.20.0130.04019.99
7.0.10.0000.04020.10
7.0.00.0030.06320.01
5.6.280.0000.07721.21
5.6.250.0100.05320.66
5.6.240.0030.07020.54
5.6.230.0000.04320.78
5.6.220.0100.04020.61
5.6.210.0000.04720.64
5.6.200.0030.04321.07
5.6.190.0070.04021.12
5.6.180.0100.03021.16
5.6.170.0000.07721.10
5.6.160.0070.06321.14
5.6.150.0030.04720.96
5.6.140.0030.04321.04
5.6.130.0000.08320.96
5.6.120.0170.07721.10
5.6.110.0070.08321.11
5.6.100.0130.07321.13
5.6.90.0070.08721.01
5.6.80.0030.08320.50
5.6.70.0070.08020.51
5.6.60.0070.08020.36
5.6.50.0130.06720.39
5.6.40.0130.07720.48
5.6.30.0100.07320.47
5.6.20.0070.08020.46
5.6.10.0030.07020.46
5.6.00.0100.08020.33
5.5.380.0100.06320.39
5.5.370.0070.03720.60
5.5.360.0100.05020.43
5.5.350.0030.04020.38
5.5.340.0070.03720.83
5.5.330.0070.07020.64
5.5.320.0000.07020.86
5.5.310.0030.04020.83
5.5.300.0070.07320.83
5.5.290.0100.07020.80
5.5.280.0130.07320.86
5.5.270.0130.07320.92
5.5.260.0100.08320.92
5.5.250.0070.08020.72
5.5.240.0000.08020.30
5.5.230.0100.08020.34
5.5.220.0070.07020.32
5.5.210.0070.08020.21
5.5.200.0030.05320.14
5.5.190.0100.07320.20
5.5.180.0070.08020.21
5.5.160.0070.07320.27
5.5.150.0130.03720.26
5.5.140.0200.06320.02
5.5.130.0070.07020.23
5.5.120.0130.05720.27
5.5.110.0170.07020.29
5.5.100.0100.07320.01
5.5.90.0130.06720.16
5.5.80.0030.06719.97
5.5.70.0030.07720.03
5.5.60.0100.07720.09
5.5.50.0030.08320.15
5.5.40.0030.05720.18
5.5.30.0100.07720.05
5.5.20.0070.07020.02
5.5.10.0070.07720.15
5.5.00.0170.07020.09

preferences:
65.93 ms | 403 KiB | 5 Q