3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $finfo = new finfo(FILEINFO_MIME_TYPE); $mimeType = $finfo->buffer(file_get_contents('http://cdn3.tnwcdn.com/wp-content/blogs.dir/1/files/2013/02/google_chrome.png')); echo $mimeType;
Output for 5.5.24 - 5.5.32, 5.5.34 - 5.6.17, 5.6.20 - 5.6.28, 7.0.0 - 7.0.3, 7.0.5 - 7.1.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/jVdaP on line 4 Warning: file_get_contents(http://cdn3.tnwcdn.com/wp-content/blogs.dir/1/files/2013/02/google_chrome.png): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/jVdaP on line 4 application/x-empty
Output for 5.3.0 - 5.4.45, 5.5.33, 5.6.18 - 5.6.19, 7.0.4
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/jVdaP on line 4 Warning: file_get_contents(http://cdn3.tnwcdn.com/wp-content/blogs.dir/1/files/2013/02/google_chrome.png): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/jVdaP on line 4 application/x-empty
Output for hhvm-3.12.0
Warning: Failed to open http://cdn3.tnwcdn.com/wp-content/blogs.dir/1/files/2013/02/google_chrome.png (Could not resolve host: cdn3.tnwcdn.com) in /in/jVdaP on line 4 Catchable fatal error: Argument 1 to finfo::buffer() must be of type ?string, bool given in /in/jVdaP on line 4
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.2.17
Fatal error: Class 'finfo' not found in /in/jVdaP on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: finfo in /in/jVdaP on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: finfo in /in/jVdaP on line 3