3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data="var=test&var2=privet"; $fp = fsockopen("rche.ru", 80, $errno, $errstr, 10); // открыть указанный хост по 80 порту $out = "POST /file.php HTTP/1.1\n"; // открыть данный скрипт $out .= "Host: rche.ru\n"; $out .= "Referer: rche.ru/\n"; $out .= "User-Agent: Opera\n"; $out .= "Content-Type: application/x-www-form-urlencoded\n"; $out .= "Content-Length: ".strlen($data)."\n\n"; $out .= $data."\n\n"; fputs($fp, $out); // отправка данных принимающему скрипту fclose($fp);
Output for git.master, git.master_jit
Warning: fsockopen(): php_network_getaddresses: getaddrinfo for rche.ru failed: System error in /in/9tlKr on line 3 Warning: fsockopen(): Unable to connect to rche.ru:80 (php_network_getaddresses: getaddrinfo for rche.ru failed: System error) in /in/9tlKr on line 3 Fatal error: Uncaught TypeError: fputs(): Argument #1 ($stream) must be of type resource, bool given in /in/9tlKr:11 Stack trace: #0 /in/9tlKr(11): fputs(false, 'POST /file.php ...') #1 {main} thrown in /in/9tlKr on line 11
Process exited with code 255.
Output for rfc.property-hooks
Warning: fsockopen(): php_network_getaddresses: getaddrinfo for rche.ru failed: System error in /in/9tlKr on line 3 Warning: fsockopen(): Unable to connect to rche.ru:80 (php_network_getaddresses: getaddrinfo for rche.ru failed: System error) in /in/9tlKr on line 3 Fatal error: Uncaught TypeError: fputs(): Argument #1 ($stream) must be of type resource, false given in /in/9tlKr:11 Stack trace: #0 /in/9tlKr(11): fputs(false, 'POST /file.php ...') #1 {main} thrown in /in/9tlKr on line 11
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:
43.02 ms | 401 KiB | 8 Q