3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo password_hash('Matel12345_?', PASSWORD_SHA512);
Output for 7.2.0
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.1.10
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.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.3.19 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/GhbtN on line 3
Process exited with code 255.