3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $filename = "file.php"; echo filetype($filename);
Output for 5.0.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: filetype(): Lstat failed for file.php in /in/77FZ6 on line 4
Output for hhvm-3.10.0 - 3.12.0
Warning: filetype(): No such file or directory in /in/77FZ6 on line 4
Output for 4.3.2 - 4.4.9
Warning: filetype(): Lstat failed for (null) (errno=2 - No such file or directory) in /in/77FZ6 on line 4
Output for 4.3.0 - 4.3.1
Warning: filetype() [http://www.php.net/function.filetype]: Lstat failed for (null) (errno=2 - No such file or directory) in /in/77FZ6 on line 4