3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hashed =password_hash(mypass); echo $hashed;
Output for 7.2.0 - 7.2.6
Warning: Use of undefined constant mypass - assumed 'mypass' (this will throw an Error in a future version of PHP) in /in/CZl64 on line 3 Warning: password_hash() expects at least 2 parameters, 1 given in /in/CZl64 on line 3
Output for 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20
Notice: Use of undefined constant mypass - assumed 'mypass' in /in/CZl64 on line 3 Warning: password_hash() expects at least 2 parameters, 1 given in /in/CZl64 on line 3
Output for 5.4.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/CZl64 on line 3
Process exited with code 255.

preferences:
103.84 ms | 401 KiB | 94 Q