3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(__FILE__); var_dump(sha1_file(__FILE__)); var_dump(hash_file('sha1', __FILE__));
Output for 5.1.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(9) "/in/eNuAO" string(40) "748679668a32627acc7552e7010a1d64fb7e8114" string(40) "748679668a32627acc7552e7010a1d64fb7e8114"
Output for 5.0.0 - 5.1.1
string(9) "/in/eNuAO" string(40) "748679668a32627acc7552e7010a1d64fb7e8114" Fatal error: Call to undefined function hash_file() in /in/eNuAO on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
string(9) "/in/eNuAO" string(40) "748679668a32627acc7552e7010a1d64fb7e8114" Fatal error: Call to undefined function: hash_file() in /in/eNuAO on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
string(9) "/in/eNuAO" string(40) "748679668a32627acc7552e7010a1d64fb7e8114" Fatal error: Call to undefined function: hash_file() in /in/eNuAO on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
string(9) "/in/eNuAO" string(40) "748679668a32627acc7552e7010a1d64fb7e8114" Fatal error: Call to undefined function: hash_file() in /in/eNuAO on line 5