3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_export(password_hash('test', 'invalid'));
Output for 8.0.0 - 8.0.8
Fatal error: Uncaught ValueError: password_hash(): Argument #2 ($algo) must be a valid password hashing algorithm in /in/vugc3:3 Stack trace: #0 /in/vugc3(3): password_hash('test', 'invalid') #1 {main} thrown in /in/vugc3 on line 3
Process exited with code 255.
Output for 7.4.0 - 7.4.21
Warning: password_hash(): Unknown password hashing algorithm: invalid in /in/vugc3 on line 3 NULL
Output for 7.3.0 - 7.3.29
Warning: password_hash() expects parameter 2 to be int, string given in /in/vugc3 on line 3 NULL

preferences:
82.54 ms | 401 KiB | 64 Q