3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data="var=test&var2=privet"; $fp = fsockopen("rche.ru", 80, $errno, $errstr, 10); // открыть указанный хост по 80 порту $out = "POST /file.php HTTP/1.1\n"; // открыть данный скрипт $out .= "Host: rche.ru\n"; $out .= "Referer: rche.ru/\n"; $out .= "User-Agent: Opera\n"; $out .= "Content-Type: application/x-www-form-urlencoded\n"; $out .= "Content-Length: ".strlen($data)."\n\n"; $out .= $data."\n\n"; fputs($fp, $out); // отправка данных принимающему скрипту fclose($fp);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9tlKr
function name:  (null)
number of ops:  28
compiled vars:  !0 = $data, !1 = $fp, !2 = $errno, !3 = $errstr, !4 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'var%3Dtest%26var2%3Dprivet'
    3     1        INIT_FCALL                                               'fsockopen'
          2        SEND_VAL                                                 'rche.ru'
          3        SEND_VAL                                                 80
          4        SEND_REF                                                 !2
          5        SEND_REF                                                 !3
          6        SEND_VAL                                                 10
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !1, $6
    4     9        ASSIGN                                                   !4, 'POST+%2Ffile.php+HTTP%2F1.1%0A'
    5    10        ASSIGN_OP                                     8          !4, 'Host%3A+rche.ru%0A'
    6    11        ASSIGN_OP                                     8          !4, 'Referer%3A+rche.ru%2F%0A'
    7    12        ASSIGN_OP                                     8          !4, 'User-Agent%3A+Opera%0A'
    8    13        ASSIGN_OP                                     8          !4, 'Content-Type%3A+application%2Fx-www-form-urlencoded%0A'
    9    14        STRLEN                                           ~13     !0
         15        CONCAT                                           ~14     'Content-Length%3A+', ~13
         16        CONCAT                                           ~15     ~14, '%0A%0A'
         17        ASSIGN_OP                                     8          !4, ~15
   10    18        CONCAT                                           ~17     !0, '%0A%0A'
         19        ASSIGN_OP                                     8          !4, ~17
   11    20        INIT_FCALL                                               'fputs'
         21        SEND_VAR                                                 !1
         22        SEND_VAR                                                 !4
         23        DO_ICALL                                                 
   12    24        INIT_FCALL                                               'fclose'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.91 ms | 1395 KiB | 19 Q