3v4l.org

run code in 300+ PHP versions simultaneously
<?php print password_hash("password");
Output for 8.0.0 - 8.0.10
Fatal error: Uncaught ArgumentCountError: password_hash() expects at least 2 arguments, 1 given in /in/k8UY6:3 Stack trace: #0 /in/k8UY6(3): password_hash('password') #1 {main} thrown in /in/k8UY6 on line 3
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.30, 7.4.0 - 7.4.23
Warning: password_hash() expects at least 2 parameters, 1 given in /in/k8UY6 on line 3

preferences:
154.87 ms | 403 KiB | 252 Q