3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fp = fsockopen('http://skks.1xbet.org', 80, $err_no, $err_str, 5); $out = 'POST WebRegistrateUser HTTP/1.1 Host: test2.1xbet.lan Content-Type: application/json; charset=UTF-8 Content-Length: 210 Connection: Close {"date_time":"2016-06-17T12:49:31","source":2,"dep_id":8846131,"first_name":"qwe","middle_name":"qwe","last_name":"qwe","document_type":1,"document_country":"BLR","document_number":"123","document_issue":"qwe"}'; fwrite($fp, $out); $arr = []; if ($fp) { while (!feof($fp)) { $arr = json_decode(fgets($fp), true); } var_dump($arr); fclose($fp); } else { var_dump($err_no, $err_str); } echo date('Y-m-d\TH:i:s');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 36
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 16
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 16
Branch analysis from position: 29
Branch analysis from position: 16
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r24na
function name:  (null)
number of ops:  45
compiled vars:  !0 = $fp, !1 = $err_no, !2 = $err_str, !3 = $out, !4 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'fsockopen'
          1        SEND_VAL                                                 'http%3A%2F%2Fskks.1xbet.org'
          2        SEND_VAL                                                 80
          3        SEND_REF                                                 !1
          4        SEND_REF                                                 !2
          5        SEND_VAL                                                 5
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !0, $5
    5     8        ASSIGN                                                   !3, 'POST+WebRegistrateUser+HTTP%2F1.1%0AHost%3A+test2.1xbet.lan%0AContent-Type%3A+application%2Fjson%3B+charset%3DUTF-8%0AContent-Length%3A+210%0AConnection%3A+Close%0A%0A%7B%22date_time%22%3A%222016-06-17T12%3A49%3A31%22%2C%22source%22%3A2%2C%22dep_id%22%3A8846131%2C%22first_name%22%3A%22qwe%22%2C%22middle_name%22%3A%22qwe%22%2C%22last_name%22%3A%22qwe%22%2C%22document_type%22%3A1%2C%22document_country%22%3A%22BLR%22%2C%22document_number%22%3A%22123%22%2C%22document_issue%22%3A%22qwe%22%7D'
   13     9        INIT_FCALL                                               'fwrite'
         10        SEND_VAR                                                 !0
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                                 
   15    13        ASSIGN                                                   !4, <array>
   16    14      > JMPZ                                                     !0, ->36
   17    15    > > JMP                                                      ->24
   18    16    >   INIT_FCALL                                               'json_decode'
         17        INIT_FCALL                                               'fgets'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $10     
         20        SEND_VAR                                                 $10
         21        SEND_VAL                                                 <true>
         22        DO_ICALL                                         $11     
         23        ASSIGN                                                   !4, $11
   17    24    >   INIT_FCALL                                               'feof'
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                         $13     
         27        BOOL_NOT                                         ~14     $13
         28      > JMPNZ                                                    ~14, ->16
   20    29    >   INIT_FCALL                                               'var_dump'
         30        SEND_VAR                                                 !4
         31        DO_ICALL                                                 
   21    32        INIT_FCALL                                               'fclose'
         33        SEND_VAR                                                 !0
         34        DO_ICALL                                                 
         35      > JMP                                                      ->40
   23    36    >   INIT_FCALL                                               'var_dump'
         37        SEND_VAR                                                 !1
         38        SEND_VAR                                                 !2
         39        DO_ICALL                                                 
   27    40    >   INIT_FCALL                                               'date'
         41        SEND_VAL                                                 'Y-m-d%5CTH%3Ai%3As'
         42        DO_ICALL                                         $18     
         43        ECHO                                                     $18
         44      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.09 ms | 948 KiB | 31 Q