3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo hash('blah', 'sha256');
Output for 8.3.0 - 8.3.30, 8.4.1 - 8.4.17, 8.5.0 - 8.5.2
Fatal error: Uncaught ValueError: hash(): Argument #1 ($algo) must be a valid hashing algorithm in /in/XvRsB:3 Stack trace: #0 /in/XvRsB(3): hash('blah', 'sha256') #1 {main} thrown in /in/XvRsB on line 3
Process exited with code 255.

preferences:
46.92 ms | 406 KiB | 5 Q