3v4l.org

run code in 300+ PHP versions simultaneously
<?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.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.25, 7.3.0 - 7.3.12, 7.4.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.5.35, 5.6.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.3.29, 5.4.0 - 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 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17

Process exited with code 139.

preferences:
175.16 ms | 402 KiB | 252 Q