3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo crypt('fubar', '$2y$07$abcdefghijklmnopqrst'), "\n", password_hash('fubar', PASSWORD_BCRYPT, array('salt' => 'abcdefghijklmnopqrst', 'cost' => 7)), "\n" ;
Output for 7.0.0 - 7.1.0
*0 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/ml9Ia on line 4 Warning: password_hash(): Provided salt is too short: 20 expecting 22 in /in/ml9Ia on line 4
Output for 5.5.0 - 5.6.28
*0 Warning: password_hash(): Provided salt is too short: 20 expecting 22 in /in/ml9Ia on line 4
Output for 5.3.7 - 5.4.45
$2y$07$abcdefghijklmnopqrst$.vQjKPMJBWcT5ccHBG9vzufYhsYR8PQe Fatal error: Call to undefined function password_hash() in /in/ml9Ia on line 4
Process exited with code 255.
Output for 5.3.2 - 5.3.6
$2wNaebwufu/U Fatal error: Call to undefined function password_hash() in /in/ml9Ia on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.1
$2BfBr5mPH3Xk Fatal error: Call to undefined function password_hash() in /in/ml9Ia on line 4
Process exited with code 255.
Output for 4.3.0 - 5.2.17

Process exited with code 139.