3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml='Test'; $posts='xml='.$xml; $query="POST /index.php HTTP/1.0\r\n". "Accept: text/html, application/xml;q=0.9, application/xhtml+xml\r\n". "Accept-Charset: utf-8\r\n". "Content-Type: application/x-www-form-urlencoded\r\n". "Content-Length: ".strlen($posts)."\r\n\r\n".$posts."\r\n\r\n"; $socket=fsockopen('colesa.ru',80,$errno,$errstr,60); fwrite($socket,$query); while(!feof($socket)){ $s.=fgets($socket); } $s=strstr($s,'<html>'); fclose($socket); echo $s; ?> <html> <body> <textarea cols="60" rows="10">&lt;? echo $_POST['xml']; ?></textarea> </body> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 22
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 22
Branch analysis from position: 31
Branch analysis from position: 22
filename:       /in/PYvtF
function name:  (null)
number of ops:  42
compiled vars:  !0 = $xml, !1 = $posts, !2 = $query, !3 = $socket, !4 = $errno, !5 = $errstr, !6 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Test'
    4     1        CONCAT                                           ~8      'xml%3D', !0
          2        ASSIGN                                                   !1, ~8
    9     3        STRLEN                                           ~10     !1
          4        CONCAT                                           ~11     'POST+%2Findex.php+HTTP%2F1.0%0D%0AAccept%3A+text%2Fhtml%2C+application%2Fxml%3Bq%3D0.9%2C+application%2Fxhtml%2Bxml%0D%0AAccept-Charset%3A+utf-8%0D%0AContent-Type%3A+application%2Fx-www-form-urlencoded%0D%0AContent-Length%3A+', ~10
          5        CONCAT                                           ~12     ~11, '%0D%0A%0D%0A'
          6        CONCAT                                           ~13     ~12, !1
          7        CONCAT                                           ~14     ~13, '%0D%0A%0D%0A'
    5     8        ASSIGN                                                   !2, ~14
   10     9        INIT_FCALL                                               'fsockopen'
         10        SEND_VAL                                                 'colesa.ru'
         11        SEND_VAL                                                 80
         12        SEND_REF                                                 !4
         13        SEND_REF                                                 !5
         14        SEND_VAL                                                 60
         15        DO_ICALL                                         $16     
         16        ASSIGN                                                   !3, $16
   11    17        INIT_FCALL                                               'fwrite'
         18        SEND_VAR                                                 !3
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                                 
   12    21      > JMP                                                      ->26
   13    22    >   INIT_FCALL                                               'fgets'
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                         $19     
         25        ASSIGN_OP                                     8          !6, $19
   12    26    >   INIT_FCALL                                               'feof'
         27        SEND_VAR                                                 !3
         28        DO_ICALL                                         $21     
         29        BOOL_NOT                                         ~22     $21
         30      > JMPNZ                                                    ~22, ->22
   15    31    >   INIT_FCALL                                               'strstr'
         32        SEND_VAR                                                 !6
         33        SEND_VAL                                                 '%3Chtml%3E'
         34        DO_ICALL                                         $23     
         35        ASSIGN                                                   !6, $23
   16    36        INIT_FCALL                                               'fclose'
         37        SEND_VAR                                                 !3
         38        DO_ICALL                                                 
   17    39        ECHO                                                     !6
   19    40        ECHO                                                     '%3Chtml%3E%0A%3Cbody%3E%0A%3Ctextarea+cols%3D%2260%22+rows%3D%2210%22%3E%26lt%3B%3F+echo+%24_POST%5B%27xml%27%5D%3B+%3F%3E%3C%2Ftextarea%3E%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   23    41      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.5 ms | 1400 KiB | 25 Q