3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url="http://lasitus.putteri.fi/datafiles/userfiles/Image/finpro_nettisivu_360x180.jpg"; $finfo=new finfo(FILEINFO_MIME); $str_mime = $finfo->file($url);
Output for 5.3.6 - 5.6.28, 7.0.0 - 7.1.0
Warning: finfo::file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/vbAps on line 4 Warning: finfo::file(http://lasitus.putteri.fi/datafiles/userfiles/Image/finpro_nettisivu_360x180.jpg): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/vbAps on line 4
Output for hhvm-3.10.0 - 3.12.0
Warning: Failed to open http://lasitus.putteri.fi/datafiles/userfiles/Image/finpro_nettisivu_360x180.jpg (Could not resolve host: lasitus.putteri.fi)
Output for 5.3.0 - 5.3.5
Warning: finfo::file(): File or path not found 'http://lasitus.putteri.fi/datafiles/userfiles/Image/finpro_nettisivu_360x180.jpg' in /in/vbAps on line 4
Output for 5.0.0 - 5.2.17
Fatal error: Class 'finfo' not found in /in/vbAps 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/vbAps 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/vbAps on line 3