3v4l.org

run code in 300+ PHP versions simultaneously
<?php global $socket; $mt4server = "FXCM-USDDemo01"; $command = "ZINFO\r\n"; $socket = fsockopen($mt4server, 443, $errno, $errstr, 5); if ($socket === false) { die($errno.", ".$errstr.", ".$socket); } else { // code with socket connected fwrite($socket,$command); $response = ""; while (!feof($socket)) { $response .= fgets($socket, 4096); } echo $response; fclose($socket); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 35, Position 2 = 25
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 35, Position 2 = 25
Branch analysis from position: 35
Branch analysis from position: 25
filename:       /in/kb1Fq
function name:  (null)
number of ops:  40
compiled vars:  !0 = $socket, !1 = $mt4server, !2 = $command, !3 = $errno, !4 = $errstr, !5 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   BIND_GLOBAL                                              !0, 'socket'
    3     1        ASSIGN                                                   !1, 'FXCM-USDDemo01'
    4     2        ASSIGN                                                   !2, 'ZINFO%0D%0A'
    5     3        INIT_FCALL                                               'fsockopen'
          4        SEND_VAR                                                 !1
          5        SEND_VAL                                                 443
          6        SEND_REF                                                 !3
          7        SEND_REF                                                 !4
          8        SEND_VAL                                                 5
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !0, $8
    6    11        TYPE_CHECK                                    4          !0
         12      > JMPZ                                                     ~10, ->19
    7    13    >   CONCAT                                           ~11     !3, '%2C+'
         14        CONCAT                                           ~12     ~11, !4
         15        CONCAT                                           ~13     ~12, '%2C+'
         16        CONCAT                                           ~14     ~13, !0
         17      > EXIT                                                     ~14
         18*       JMP                                                      ->39
   10    19    >   INIT_FCALL                                               'fwrite'
         20        SEND_VAR                                                 !0
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                                 
   11    23        ASSIGN                                                   !5, ''
   12    24      > JMP                                                      ->30
   13    25    >   INIT_FCALL                                               'fgets'
         26        SEND_VAR                                                 !0
         27        SEND_VAL                                                 4096
         28        DO_ICALL                                         $17     
         29        ASSIGN_OP                                     8          !5, $17
   12    30    >   INIT_FCALL                                               'feof'
         31        SEND_VAR                                                 !0
         32        DO_ICALL                                         $19     
         33        BOOL_NOT                                         ~20     $19
         34      > JMPNZ                                                    ~20, ->25
   15    35    >   ECHO                                                     !5
   16    36        INIT_FCALL                                               'fclose'
         37        SEND_VAR                                                 !0
         38        DO_ICALL                                                 
   20    39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.33 ms | 1400 KiB | 23 Q