3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo crypt('fubar', '$2y$07$abcdefghijklmnopqrstuv'), "\n", password_hash('fubar', PASSWORD_BCRYPT, array('salt' => 'abcdefghijklmnopqrstuv', 'cost' => 7)), "\n" ;
Output for 7.0.0 - 7.1.0
$2y$07$abcdefghijklmnopqrstuuN9brUmpVhMHs956mzESGw7.JVaylIZ6 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/jcTuZ on line 4 $2y$07$abcdefghijklmnopqrstuuN9brUmpVhMHs956mzESGw7.JVaylIZ6
Output for 5.5.24 - 5.6.28, hhvm-3.12.0
$2y$07$abcdefghijklmnopqrstuuN9brUmpVhMHs956mzESGw7.JVaylIZ6 $2y$07$abcdefghijklmnopqrstuuN9brUmpVhMHs956mzESGw7.JVaylIZ6
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.7 - 5.4.45
$2y$07$abcdefghijklmnopqrstuuN9brUmpVhMHs956mzESGw7.JVaylIZ6 Fatal error: Call to undefined function password_hash() in /in/jcTuZ 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/jcTuZ 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/jcTuZ on line 4
Process exited with code 255.
Output for 4.3.0 - 5.2.17

Process exited with code 139.