3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo password_hash('Matel12345_?', PASSWORD_SHA512);
Output for 7.3.0 - 7.3.1
Warning: Use of undefined constant PASSWORD_SHA512 - assumed 'PASSWORD_SHA512' (this will throw an Error in a future version of PHP) in /in/GhbtN on line 3 Warning: password_hash() expects parameter 2 to be int, string given in /in/GhbtN on line 3
Output for 7.2.0 - 7.2.13
Warning: Use of undefined constant PASSWORD_SHA512 - assumed 'PASSWORD_SHA512' (this will throw an Error in a future version of PHP) in /in/GhbtN on line 3 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GhbtN on line 3
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.25
Notice: Use of undefined constant PASSWORD_SHA512 - assumed 'PASSWORD_SHA512' in /in/GhbtN on line 3 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GhbtN on line 3
Output for 5.5.24 - 5.5.35, 5.6.7 - 5.6.28
Notice: Use of undefined constant PASSWORD_SHA512 - assumed 'PASSWORD_SHA512' in /in/GhbtN on line 3 Warning: password_hash() expects parameter 2 to be long, string given in /in/GhbtN on line 3
Output for 5.4.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/GhbtN on line 3
Process exited with code 255.

preferences:
98.56 ms | 401 KiB | 109 Q