3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sock = fsockopen('irc.tl', 6667); fwrite($sock, "NICK abcfds\n"); fwrite($sock, "USER abcfds 0 * :asd\n"); while(1) { while ($data = fgets($sock)) { echo nl2br($data); flush(); $w = explode(' ', $data); fwrite($sock,"JOIN #socktest\n"); if(isset($w[0])) { if($w[0] == "PING") { fwrite($sock, "PONG ".$w[1]."\n"); } } } } ?>
Output for git.master, git.master_jit
Warning: fsockopen(): php_network_getaddresses: getaddrinfo for irc.tl failed: System error in /in/hPR4l on line 2 Warning: fsockopen(): Unable to connect to irc.tl:6667 (php_network_getaddresses: getaddrinfo for irc.tl failed: System error) in /in/hPR4l on line 2 Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /in/hPR4l:3 Stack trace: #0 /in/hPR4l(3): fwrite(false, 'NICK abcfds\n') #1 {main} thrown in /in/hPR4l on line 3
Process exited with code 255.
Output for rfc.property-hooks
Warning: fsockopen(): php_network_getaddresses: getaddrinfo for irc.tl failed: System error in /in/hPR4l on line 2 Warning: fsockopen(): Unable to connect to irc.tl:6667 (php_network_getaddresses: getaddrinfo for irc.tl failed: System error) in /in/hPR4l on line 2 Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, false given in /in/hPR4l:3 Stack trace: #0 /in/hPR4l(3): fwrite(false, 'NICK abcfds\n') #1 {main} thrown in /in/hPR4l on line 3
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:
51.42 ms | 401 KiB | 8 Q