3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = 'dave'; $passw = password_hash($password); var_dump($passw);
Output for 8.1.10 - 8.1.13
Fatal error: Uncaught ArgumentCountError: password_hash() expects at least 2 arguments, 1 given in /in/4S1Bu:4 Stack trace: #0 /in/4S1Bu(4): password_hash('dave') #1 {main} thrown in /in/4S1Bu on line 4
Process exited with code 255.

preferences:
72.32 ms | 405 KiB | 5 Q