3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(is_file('/tmp/largefile'), is_dir('/tmp/largefile'), filesize('/tmp/largefile'));
Output for 5.0.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: filesize(): stat failed for /tmp/largefile in /in/3hgV3 on line 3 bool(false) bool(false) bool(false)
Output for hhvm-3.10.0 - 3.12.0
Warning: filesize(): No such file or directory in /in/3hgV3 on line 3 bool(false) bool(false) bool(false)
Output for 4.3.2 - 4.4.9
Warning: filesize(): Stat failed for /tmp/largefile (errno=2 - No such file or directory) in /in/3hgV3 on line 3 bool(false) bool(false) bool(false)
Output for 4.3.0 - 4.3.1
Warning: filesize() [http://www.php.net/function.filesize]: Stat failed for /tmp/largefile (errno=2 - No such file or directory) in /in/3hgV3 on line 3 bool(false) bool(false) bool(false)