3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fp = fsockopen("www.baidu.com", 80, $errno, $errstr, 30); if (!$fp) die('error fsockopen'); stream_set_blocking($fp,0); $http = "GET /index.php / HTTP/1.1\r\n"; $http .= "Host: www.baidu.com\r\n"; $http .= "Connection: Close\r\n\r\n"; fwrite($fp,$http); fclose($fp); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rQeG9
function name:  (null)
number of ops:  26
compiled vars:  !0 = $fp, !1 = $errno, !2 = $errstr, !3 = $http
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'fsockopen'
          1        SEND_VAL                                                 'www.baidu.com'
          2        SEND_VAL                                                 80
          3        SEND_REF                                                 !1
          4        SEND_REF                                                 !2
          5        SEND_VAL                                                 30
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !0, $4
    4     8        BOOL_NOT                                         ~6      !0
          9      > JMPZ                                                     ~6, ->11
         10    > > EXIT                                                     'error+fsockopen'
    5    11    >   INIT_FCALL                                               'stream_set_blocking'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 0
         14        DO_ICALL                                                 
    6    15        ASSIGN                                                   !3, 'GET+%2Findex.php++%2F+HTTP%2F1.1%0D%0A'
    7    16        ASSIGN_OP                                     8          !3, 'Host%3A+www.baidu.com%0D%0A'
    8    17        ASSIGN_OP                                     8          !3, 'Connection%3A+Close%0D%0A%0D%0A'
    9    18        INIT_FCALL                                               'fwrite'
         19        SEND_VAR                                                 !0
         20        SEND_VAR                                                 !3
         21        DO_ICALL                                                 
   10    22        INIT_FCALL                                               'fclose'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                                 
   11    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.27 ms | 1395 KiB | 21 Q