3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); $sname = "Aftab"; $count = 0; $m = 0; $TP = 60; $uid = "9475332864"; $pwd = "fput7nh"; $start = 1; $cookie = tempnam("/tmp", "CURLCOOKIE"); $agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7"; echo "<h2>$uid </h2>"; $server = "http://ultoo.com"; $url = "$server/login.php"; $url_p = "$server/poll.php"; $url_pc = "$server/PollCompletion.php"; $url_pcc = "$server/PollCompleted.php"; $url_n = "$server/login.php"; $s_c = "$server/secure.php"; relogin : $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "$url_n"); curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/x-www-form-urlencoded", "Accept: */*")); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_REFERER, "$server"); curl_setopt($ch, CURLOPT_AUTOREFERER, 1); $html = curl_exec($ch); preg_match("/<input name=\"(.*?)\" type=\"text\" class=\"(.*?)\" id=\"(.*?)\" maxlength=\"10\"/m", $html, $n); preg_match("/<input name=\"(.*?)\" type=\"password\" class=\"(.*?)\" id=\"(.*?)\" maxlength = \"20\"/m", $html, $p); preg_match("/<input type=\"hidden\" name=\"(.*?)\" value=\"\"/m", $html, $m); $data1 = "$m[1]=\"\"&$n[1]=$uid&$p[1]=$pwd&RememberMe=1&submit2=LOGIN HERE"; echo $data1; curl_setopt($ch, CURLOPT_URL, "$url"); curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/x-www-form-urlencoded", "Accept: */*")); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_REFERER, "$url"); curl_setopt($ch, CURLOPT_AUTOREFERER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "$data1"); $html = curl_exec($ch); //echo $html; curl_setopt($ch, CURLOPT_URL, "$s_c"); curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/x-www-form-urlencoded", "Accept: */*")); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_REFERER, "$url"); curl_setopt($ch, CURLOPT_AUTOREFERER, 1); curl_setopt($ch, CURLOPT_POST, 1); $html = curl_exec($ch); //$sx = simplexml_load_string($html); preg_match_all('/<img[^>]+>/i', $html, $m); echo "<pre>".print_r($m,true); //preg_match_all('/<(?:"[^"]*"[\'"]*|\'[^\']*\'[\'"]*|[^\'">])+>/', $html, $m); //var_dump($sx); //echo "<pre>".print_r($sx,true); ?>
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
<h2>9475332864 </h2>
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Parse error: syntax error, unexpected ':' in /in/BWHg9 on line 25
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected ':' in /in/BWHg9 on line 25
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/BWHg9 on line 25
Process exited with code 255.

preferences:
293.31 ms | 401 KiB | 456 Q