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');
Output for git.master, git.master_jit
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 Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /in/r24na:13 Stack trace: #0 /in/r24na(13): fwrite(false, 'POST WebRegistr...') #1 {main} thrown in /in/r24na on line 13
Process exited with code 255.
Output for rfc.property-hooks
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 Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, false given in /in/r24na:13 Stack trace: #0 /in/r24na(13): fwrite(false, 'POST WebRegistr...') #1 {main} thrown in /in/r24na on line 13
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
61.66 ms | 401 KiB | 8 Q