3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fi = new finfo(FILEINFO_MIME,'/usr/share/file/magic'); ?>
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Exception: finfo::finfo(/usr/share/file/magic): failed to open stream: No such file or directory in /in/bb2sS:3 Stack trace: #0 /in/bb2sS(3): finfo->finfo(1040, '/usr/share/file...') #1 {main} thrown in /in/bb2sS on line 3
Process exited with code 255.
Output for 5.4.12 - 5.6.28
Warning: finfo::finfo(/usr/share/file/magic): failed to open stream: No such file or directory in /in/bb2sS on line 3 Warning: finfo::finfo(/usr/share/file/magic): failed to open stream: No such file or directory in /in/bb2sS on line 3 Warning: finfo::finfo(): Failed to load magic database at '/usr/share/file/magic'. in /in/bb2sS on line 3
Output for 5.3.22 - 5.3.29