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.6.38, 7.0.0 - 7.2.11
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 hhvm-3.22.0
Fatal error: Uncaught TypeError: Value returned from function socket_set_timeout() must be of type bool, null given in /in/SIlFn:-1 Stack trace: #0 /in/SIlFn(-1): socket_set_timeout() #1 {main}
Process exited with code 255.
Output for hhvm-3.21.0 - 3.21.3
Fatal error: Uncaught TypeError: Value returned from function socket_set_timeout() must be of type bool, null given in /in/SIlFn:6 Stack trace: #0 /in/SIlFn(6): socket_set_timeout() #1 {main}
Process exited with code 255.
Output for hhvm-3.15.4 - 3.20.2
Fatal error: Uncaught TypeError: Argument 1 passed to stream_set_timeout() must be an instance of resource, bool given in /in/SIlFn:6 Stack trace: #0 (): stream_set_timeout() #1 /in/SIlFn(6): socket_set_timeout() #2 {main}
Process exited with code 255.
Output for hhvm-3.11.1 - 3.13.2
Fatal error: Uncaught TypeError: Argument 1 passed to stream_set_timeout() must be an instance of resource, bool given in /in/SIlFn:6 Stack trace: #0 /in/SIlFn(6): socket_set_timeout() #1 {main}
Process exited with code 255.
Output for hhvm-3.10.1

Process exited with code 255.