3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $crypt = crypt('rasmuslerdorf', '$2y$07$usesomesillystringforsalt$'); $password_hash = password_hash('rasmuslerdorf'); // werkt tot er een PHP versie is die de waarde van PASSWORD_DEFAULT veranderd var_dump( password_verify('rasmuslerdorf', $crypt), // ik gebruik password_hash() en crypt() door elkaar! crypt('rasmuslerdorf', $password_hash) == $password_hash // nu doe ik het nog een keer! );
Output for 5.5.24 - 5.6.28, 7.0.0 - 7.1.0
Warning: password_hash() expects at least 2 parameters, 1 given in /in/E2W0C on line 4 bool(true) bool(false)
Output for hhvm-3.12.0
Warning: password_hash() expects at least 2 parameters, 1 given in /in/E2W0C on line 4 Catchable fatal error: Argument 2 passed to password_hash() must be an instance of int, undefined variable given in /in/E2W0C on line 4
Process exited with code 255.
Output for hhvm-3.10.0
Warning: password_hash() expects at least 2 parameters, 1 given in /in/E2W0C on line 8 Catchable fatal error: Argument 2 passed to password_hash() must be an instance of int, undefined variable given in /in/E2W0C on line 8
Process exited with code 255.
Output for 5.3.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/E2W0C on line 4
Process exited with code 255.
Output for 4.3.0 - 5.2.17

Process exited with code 139.