3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo mime_content_type ( 'http://www.springload.cn/themes/images/springload_rand_0.jpg' ) . "\n" ; echo mime_content_type ( 'test.php' );
Output for 5.3.6 - 5.6.21, 7.0.0 - 7.1.0
Warning: mime_content_type(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/ZBDUe on line 3 Warning: mime_content_type(http://www.springload.cn/themes/images/springload_rand_0.jpg): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/ZBDUe on line 3 Warning: mime_content_type(test.php): failed to open stream: No such file or directory in /in/ZBDUe on line 4
Output for hhvm-3.10.0 - 3.12.0
Warning: Failed to open http://www.springload.cn/themes/images/springload_rand_0.jpg (Could not resolve host: www.springload.cn) in /in/ZBDUe on line 3 Warning: No such file or directory in /in/ZBDUe on line 4
Output for 5.3.0 - 5.3.5
Warning: mime_content_type(): File or path not found 'http://www.springload.cn/themes/images/springload_rand_0.jpg' in /in/ZBDUe on line 3 Warning: mime_content_type(): File or path not found 'test.php' in /in/ZBDUe on line 4
Output for 5.2.3 - 5.2.17
Fatal error: Call to undefined function mime_content_type() in /in/ZBDUe on line 3
Process exited with code 255.
Output for 5.0.0 - 5.2.2
<br /> <b>Fatal error</b>: Call to undefined function mime_content_type() in <b>/in/ZBDUe</b> on line <b>3</b><br />
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<br /> <b>Fatal error</b>: Call to undefined function: mime_content_type() in <b>/in/ZBDUe</b> on line <b>3</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<br /> <b>Fatal error</b>: Call to undefined function: mime_content_type() in <b>/in/ZBDUe</b> on line <b>3</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Call to undefined function: mime_content_type() in <b>/in/ZBDUe</b> on line <b>3</b><br />