3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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');
based on ZAiKP
Output for 5.5.0, 5.5.3 - 5.5.5, 5.5.8 - 5.5.9, 5.5.11 - 5.5.13, 5.5.15, 5.5.18, 5.5.23 - 5.6.12, 5.6.16 - 5.6.19, 5.6.22, 5.6.24 - 5.6.28, 7.1.5 - 7.1.6, 7.2.0 - 7.2.6
Warning: fsockopen(): unable to connect to http://skks.1xbet.org:80 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/r24na on line 3 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/r24na on line 13 int(0) string(97) "Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?" 2016-06-17T11:52:28
Output for 7.1.20
Warning: fsockopen(): unable to connect to http://skks.1xbet.org:80 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/r24na on line 3 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/r24na on line 13 int(32512) string(97) "Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?" 2016-06-17T11:52:28
Output for 7.1.10
Warning: fsockopen(): unable to connect to http://skks.1xbet.org:80 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/r24na on line 3 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/r24na on line 13 int(32568) string(97) "Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?" 2016-06-17T11:52:28
Output for 7.1.7
Warning: fsockopen(): unable to connect to http://skks.1xbet.org:80 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/r24na on line 3 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/r24na on line 13 int(32550) string(97) "Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?" 2016-06-17T11:52:28
Output for 7.1.0
Warning: fsockopen(): unable to connect to http://skks.1xbet.org:80 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/r24na on line 3 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/r24na on line 13 int(32680) string(97) "Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?" 2016-06-17T11:52:28
Output for 7.0.20
Warning: fsockopen(): unable to connect to http://skks.1xbet.org:80 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/r24na on line 3 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/r24na on line 13 int(32671) string(97) "Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?" 2016-06-17T11:52:28
Output for 7.0.0, 7.0.3, 7.0.6 - 7.0.9
Warning: fsockopen(): unable to connect to http://skks.1xbet.org:80 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/r24na on line 3 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/r24na on line 13 int(1) string(97) "Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?" 2016-06-17T11:52:28
Output for 7.0.5
Warning: fsockopen(): unable to connect to http://skks.1xbet.org:80 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/r24na on line 3 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/r24na on line 13 int(32595) string(97) "Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?" 2016-06-17T11:52:28
Output for 7.0.4
Warning: fsockopen(): unable to connect to http://skks.1xbet.org:80 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/r24na on line 3 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/r24na on line 13 int(32755) string(97) "Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?" 2016-06-17T11:52:28
Output for 7.0.2
Warning: fsockopen(): unable to connect to http://skks.1xbet.org:80 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/r24na on line 3 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/r24na on line 13 int(32637) string(97) "Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?" 2016-06-17T11:52:28
Output for 7.0.1
Warning: fsockopen(): unable to connect to http://skks.1xbet.org:80 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/r24na on line 3 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/r24na on line 13 int(32714) string(97) "Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?" 2016-06-17T11:52:28
Output for 5.6.23
Warning: fsockopen(): unable to connect to http://skks.1xbet.org:80 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/r24na on line 3 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/r24na on line 13 int(32651) string(97) "Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?" 2016-06-17T11:52:28
Output for 5.6.21
Warning: fsockopen(): unable to connect to http://skks.1xbet.org:80 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/r24na on line 3 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/r24na on line 13 int(32580) string(97) "Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?" 2016-06-17T11:52:28
Output for 5.6.20
Warning: fsockopen(): unable to connect to http://skks.1xbet.org:80 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/r24na on line 3 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/r24na on line 13 int(32762) string(97) "Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?" 2016-06-17T11:52:28
Output for 5.6.15
Warning: fsockopen(): unable to connect to http://skks.1xbet.org:80 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/r24na on line 3 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/r24na on line 13 int(32660) string(97) "Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?" 2016-06-17T11:52:28
Output for 5.6.14
Warning: fsockopen(): unable to connect to http://skks.1xbet.org:80 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/r24na on line 3 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/r24na on line 13 int(32664) string(97) "Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?" 2016-06-17T11:52:28
Output for 5.6.13
Warning: fsockopen(): unable to connect to http://skks.1xbet.org:80 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/r24na on line 3 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/r24na on line 13 int(32541) string(97) "Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?" 2016-06-17T11:52:28
Output for 5.5.7, 5.5.10, 5.5.20 - 5.5.22
Warning: fsockopen(): unable to connect to http://skks.1xbet.org:80 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/r24na on line 3 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/r24na on line 13 int(32765) string(97) "Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?" 2016-06-17T11:52:28
Output for 5.5.1, 5.5.6, 5.5.16, 5.5.19
Warning: fsockopen(): unable to connect to http://skks.1xbet.org:80 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/r24na on line 3 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/r24na on line 13 int(32764) string(97) "Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?" 2016-06-17T11:52:28
Output for 5.5.2, 5.5.14
Warning: fsockopen(): unable to connect to http://skks.1xbet.org:80 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/r24na on line 3 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/r24na on line 13 int(32767) string(97) "Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?" 2016-06-17T11:52:28