3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print sha1(null).PHP_EOL; print sha1('').PHP_EOL; print sha1();
Output for 5.0.2 - 7.2.0
da39a3ee5e6b4b0d3255bfef95601890afd80709 da39a3ee5e6b4b0d3255bfef95601890afd80709 Warning: sha1() expects at least 1 parameter, 0 given in /in/qFI8U on line 5
Output for 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/qFI8U on line 3 da39a3ee5e6b4b0d3255bfef95601890afd80709PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/qFI8U on line 4 da39a3ee5e6b4b0d3255bfef95601890afd80709PHP_EOL Warning: sha1() expects at least 1 parameter, 0 given in /in/qFI8U on line 5
Output for 4.3.10 - 4.4.9
da39a3ee5e6b4b0d3255bfef95601890afd80709 da39a3ee5e6b4b0d3255bfef95601890afd80709 Warning: Wrong parameter count for sha1() in /in/qFI8U on line 5
Output for 4.3.0 - 4.3.9
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/qFI8U on line 3 da39a3ee5e6b4b0d3255bfef95601890afd80709PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/qFI8U on line 4 da39a3ee5e6b4b0d3255bfef95601890afd80709PHP_EOL Warning: Wrong parameter count for sha1() in /in/qFI8U on line 5