3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.5 ms | 1400 KiB | 21 Q