3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( hash_file( 'md5', '/etc/' ) );
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.26, 8.4.1 - 8.4.13
Notice: hash_file(): Read of 8192 bytes failed with errno=21 Is a directory in /in/58RgW on line 3 bool(false)
Output for 7.4.0 - 7.4.25, 7.4.27 - 7.4.33
Notice: hash_file(): read of 8192 bytes failed with errno=21 Is a directory in /in/58RgW on line 3 bool(false)
Output for 7.4.26
bool(false)
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33
string(32) "d41d8cd98f00b204e9800998ecf8427e"

preferences:
133.59 ms | 410 KiB | 5 Q