3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml='Test'; $posts='xml='.$xml; $query="POST /index.php HTTP/1.0\r\n". "Accept: text/html, application/xml;q=0.9, application/xhtml+xml\r\n". "Accept-Charset: utf-8\r\n". "Content-Type: application/x-www-form-urlencoded\r\n". "Content-Length: ".strlen($posts)."\r\n\r\n".$posts."\r\n\r\n"; $socket=fsockopen('colesa.ru',80,$errno,$errstr,60); fwrite($socket,$query); while(!feof($socket)){ $s.=fgets($socket); } $s=strstr($s,'<html>'); fclose($socket); echo $s; ?> <html> <body> <textarea cols="60" rows="10">&lt;? echo $_POST['xml']; ?></textarea> </body> </html>
Output for git.master, git.master_jit
Warning: fsockopen(): php_network_getaddresses: getaddrinfo for colesa.ru failed: System error in /in/PYvtF on line 10 Warning: fsockopen(): Unable to connect to colesa.ru:80 (php_network_getaddresses: getaddrinfo for colesa.ru failed: System error) in /in/PYvtF on line 10 Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /in/PYvtF:11 Stack trace: #0 /in/PYvtF(11): fwrite(false, 'POST /index.php...') #1 {main} thrown in /in/PYvtF on line 11
Process exited with code 255.
Output for rfc.property-hooks
Warning: fsockopen(): php_network_getaddresses: getaddrinfo for colesa.ru failed: System error in /in/PYvtF on line 10 Warning: fsockopen(): Unable to connect to colesa.ru:80 (php_network_getaddresses: getaddrinfo for colesa.ru failed: System error) in /in/PYvtF on line 10 Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, false given in /in/PYvtF:11 Stack trace: #0 /in/PYvtF(11): fwrite(false, 'POST /index.php...') #1 {main} thrown in /in/PYvtF 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:
35.14 ms | 401 KiB | 8 Q