3v4l.org

run code in 300+ PHP versions simultaneously
<?php $phone = 30129500; $phone2 = 30129510; while($phone <= $phone2) { $fp = fsockopen("http://reklamation.fk.dk/fk_reklamation/DataServlet?do=tlflookup&firmanr=7&lang=da&telefonnr={$phone}", 80, $errno, $errstr, 30); if (!$fp) { echo "$errstr ($errno)<br />\n"; } else { header('Content-Type: audio/mpeg'); $out = "GET / HTTP/1.1\r\n"; $out .= "Host: www.example.com\r\n"; $out .= "Connection: Close\r\n\r\n"; fwrite($fp, $out); while (!feof($fp)) { echo fgets($fp, 128); } fclose($fp); } $phone++; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 46
Branch analysis from position: 46
2 jumps found. (Code = 44) Position 1 = 48, Position 2 = 3
Branch analysis from position: 48
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 21
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
2 jumps found. (Code = 44) Position 1 = 48, Position 2 = 3
Branch analysis from position: 48
Branch analysis from position: 3
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 32
Branch analysis from position: 42
2 jumps found. (Code = 44) Position 1 = 48, Position 2 = 3
Branch analysis from position: 48
Branch analysis from position: 3
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 32
Branch analysis from position: 42
Branch analysis from position: 32
filename:       /in/djlDp
function name:  (null)
number of ops:  49
compiled vars:  !0 = $phone, !1 = $phone2, !2 = $fp, !3 = $errno, !4 = $errstr, !5 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 30129500
    3     1        ASSIGN                                                   !1, 30129510
    4     2      > JMP                                                      ->46
    5     3    >   INIT_FCALL                                               'fsockopen'
          4        NOP                                                      
          5        FAST_CONCAT                                      ~8      'http%3A%2F%2Freklamation.fk.dk%2Ffk_reklamation%2FDataServlet%3Fdo%3Dtlflookup%26firmanr%3D7%26lang%3Dda%26telefonnr%3D', !0
          6        SEND_VAL                                                 ~8
          7        SEND_VAL                                                 80
          8        SEND_REF                                                 !3
          9        SEND_REF                                                 !4
         10        SEND_VAL                                                 30
         11        DO_ICALL                                         $9      
         12        ASSIGN                                                   !2, $9
    6    13        BOOL_NOT                                         ~11     !2
         14      > JMPZ                                                     ~11, ->21
    7    15    >   ROPE_INIT                                     4  ~13     !4
         16        ROPE_ADD                                      1  ~13     ~13, '+%28'
         17        ROPE_ADD                                      2  ~13     ~13, !3
         18        ROPE_END                                      3  ~12     ~13, '%29%3Cbr+%2F%3E%0A'
         19        ECHO                                                     ~12
         20      > JMP                                                      ->45
   10    21    >   INIT_FCALL                                               'header'
         22        SEND_VAL                                                 'Content-Type%3A+audio%2Fmpeg'
         23        DO_ICALL                                                 
   12    24        ASSIGN                                                   !5, 'GET+%2F+HTTP%2F1.1%0D%0A'
   13    25        ASSIGN_OP                                     8          !5, 'Host%3A+www.example.com%0D%0A'
   14    26        ASSIGN_OP                                     8          !5, 'Connection%3A+Close%0D%0A%0D%0A'
   15    27        INIT_FCALL                                               'fwrite'
         28        SEND_VAR                                                 !2
         29        SEND_VAR                                                 !5
         30        DO_ICALL                                                 
   16    31      > JMP                                                      ->37
   17    32    >   INIT_FCALL                                               'fgets'
         33        SEND_VAR                                                 !2
         34        SEND_VAL                                                 128
         35        DO_ICALL                                         $20     
         36        ECHO                                                     $20
   16    37    >   INIT_FCALL                                               'feof'
         38        SEND_VAR                                                 !2
         39        DO_ICALL                                         $21     
         40        BOOL_NOT                                         ~22     $21
         41      > JMPNZ                                                    ~22, ->32
   20    42    >   INIT_FCALL                                               'fclose'
         43        SEND_VAR                                                 !2
         44        DO_ICALL                                                 
   23    45    >   PRE_INC                                                  !0
    4    46    >   IS_SMALLER_OR_EQUAL                                      !0, !1
         47      > JMPNZ                                                    ~25, ->3
   24    48    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.79 ms | 1400 KiB | 25 Q