3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $vt_ip = "68.8.11.202"; // Server IP $vt_port = "27015"; // Port $output = @fsockopen("udp://$vt_ip", $vt_port, $errno, $errstr, 0.25); @socket_set_timeout($output, 1); @socket_set_blocking($output, 1); @fwrite($output, "\xFF\xFF\xFF\xFF\x54\x53\x6F\x75\x72\x63\x65\x20\x45\x6E\x67\x69\x6E\x65\x20\x51\x75\x65\x72\x79\x00"); $buffer = @fread($output, 4096); if (!$buffer) { $cache_file = "http://cur.pimpmyspace.org/cursors/online/31d5db52e529eea672be9ba5ebfa2c12.gif"; } else { $cache_file = "http://cur.pimpmyspace.org/cursors/online/6351473e988e557edd4e723c15c5b968.gif"; } @fclose($output); header("Content-Type: image/jpeg"); // header("Content-Length: ".filesize($cache_file)); $cache = fopen($cache_file,"r"); fpassthru($cache); fclose($cache); exit; ?>
Output for 5.3.17 - 5.4.45, 5.5.33, 5.6.18 - 5.6.19, 7.0.4, 7.0.20, 7.1.5 - 7.2.0
Warning: fopen(): php_network_getaddresses: getaddrinfo failed: System error in /in/SIlFn on line 24 Warning: fopen(http://cur.pimpmyspace.org/cursors/online/31d5db52e529eea672be9ba5ebfa2c12.gif): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/SIlFn on line 24 Warning: fpassthru() expects parameter 1 to be resource, boolean given in /in/SIlFn on line 25 Warning: fclose() expects parameter 1 to be resource, boolean given in /in/SIlFn on line 26
Output for 5.5.24 - 5.5.32, 5.5.34 - 5.6.17, 5.6.20 - 7.0.3, 7.0.5 - 7.0.6, 7.1.0
Warning: fopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/SIlFn on line 24 Warning: fopen(http://cur.pimpmyspace.org/cursors/online/31d5db52e529eea672be9ba5ebfa2c12.gif): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/SIlFn on line 24 Warning: fpassthru() expects parameter 1 to be resource, boolean given in /in/SIlFn on line 25 Warning: fclose() expects parameter 1 to be resource, boolean given in /in/SIlFn on line 26