3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $password = 'sup3r53cr3t!'; $options = [ 'cost' => 12 ]; echo password_hash("rasmuslerdorf", PASSWORD_DEFAULT)."\n"; ?>
Output for 7.1.0
$2y$10$86Vy7l.evck5s3tbvreFdu7xEFz0yRrm46V1XpAMpKackHHrOu1wW
Output for 7.0.14
$2y$10$DQDJyEgPYKuP8AqbVgD2d.kbKuwbGntH022Ykh6p824CYbwSVO4WS
Output for 7.0.6
$2y$10$EhWcnx70hBVUSD.PlBQ.6.aSmBM5N/Sb4jY9EZECFITug1LQFRBzq
Output for 7.0.5
$2y$10$alsgklK3hz6HxHFSeXGjqOkFWTAGuJpgijyEUSCYa0n7BUPVzyK8S
Output for 7.0.4
$2y$10$40ykFJlj64AafpXzVp1.neVVTqN.O/PHuY1jbxxYC8k28lyZ9PQ3K
Output for 7.0.3
$2y$10$.5SbbNP1owlV.9TxkR7eiO8eBDbODVfONjUh/FCd3xM/K0l.FiyxS
Output for 7.0.2
$2y$10$f/SFx90vSzWe9kdwC8G/s./8Dc4aNkVPvIRqw6ZbkW/Q00VeB9bq2
Output for 7.0.1
$2y$10$krtZjpc0Bkvlnrj1sBJwyu/iK1PxWMcAC4JRt4IlvlfcgyixCVajW
Output for 7.0.0
$2y$10$E8q2D.bBAO/adX7OUyKJyOpqCXi3OdQjIsnyQJhvOven3GeIH6eGC
Output for 5.6.28
$2y$10$ImfR58eHgcJu.7XvjLalAuR5sRkc7iAcbMeNmGZxud5EZsQptwM42
Output for 5.6.21
$2y$10$qObr1C479ijDr0j/RBudReMhxAuvthtvOudmMwSoi.W7Ep.ltFXpa
Output for 5.6.20
$2y$10$8DCpLOL68zU4TZAKCULwH.2XlCylzEf/Siqjv5Xp1ODU2ZTSpqxpi
Output for 5.6.19
$2y$10$K.Eh9.LtOXMjXxvY8bMnmubxtK2JDGa8oyD8MDkkGVUmG8ZQpUtfC
Output for 5.6.18
$2y$10$AuthzDFXa5VhWPWBkCaSx.epu/3.uUm3fwmZYjG2Im1xnSViUnqQO
Output for 5.6.17
$2y$10$O/iQgzrosL.49BiQ4pvTdOgikgXeipVVVuvBvC5BLUp962ip.FxGm
Output for 5.6.16
$2y$10$6yM8kR8.TZqmbyQNbFQNheAk2J8sTc5t.labJRsFy8kixePG5gQFW
Output for 5.6.15
$2y$10$XpkkiNRWHCqzYxVU.e4.W.5KwfWk6zLlh1xb9VaSrn9i9C7cVijGW
Output for 5.6.14
$2y$10$3R5AzGOFY7rHOO6xI8M1wer9HC95/5oSIMhZHdKj8ub8lYAJAafKW
Output for 5.6.13
$2y$10$fzFGku53jt1dsTNFR/SwneVeklUWHBQbJIJ9DptLhauFhUZJxWH4S
Output for 5.6.12
$2y$10$R8YW0i11IwbmxAqxosixYOsqqFSXTVx4EItyoXnSw/ULnDy7xB16e
Output for 5.6.11
$2y$10$Qk2VPkFzGCrXPdFWeq27UeM9vcMz4B5rsyf5KP2Fn.DZvjZ80AWdK
Output for 5.6.10
$2y$10$CWeAaVrN1gUHkK33I5Qcgu4GBPueA1RkGSQLiRvZcykUZuEV/ggxW
Output for 5.6.9
$2y$10$P4WQA6IbagG.6TNjoLT40uFC3Q2Hghpm6KMaWU7wvN5e5onWNxyIa
Output for 5.6.8
$2y$10$COjnda6BVfKQPxemYkhC6OdH9dJj9/NbXl2pJXNoG06rRwuI/XqNm
Output for 5.5.35
$2y$10$CHg1iGXMcl7rGAHmZvxr8O0cGe6.ifaJT2vJFO//ceGxR1y/HRhia
Output for 5.5.34
$2y$10$LzLiDYP1kLppyV8EOqHDlOJ1PHhj31KIHPCqreULJYkXVlwd5d15S
Output for 5.5.33
$2y$10$R8P0W1L8yuBxskUjXP51Ee1NmZhlgSWfjpLQ8fq7kyF7kD0RdNdC6
Output for 5.5.32
$2y$10$B2RujX2dn2hQh4mZsfmw.eSn5krC8bNfdJfkrUS2JoyiZrxTYsWza
Output for 5.5.31
$2y$10$ZDjOIdC9RY/GxO2KrQPc6OHfhg8maSakqXMfY8QN2qZNgSDLQ3f7e
Output for 5.5.30
$2y$10$OlWJur8QyfVAgdoc6pRZOu/u8y2GjqXxxZb.AaomTaOJZd46HtGou
Output for 5.5.29
$2y$10$y9U8pyNcg4uDwWy1LJtHretOSUpCS8AYkx0zYobmaCEc0kNIWBCna
Output for 5.5.28
$2y$10$E/R1D7siKkeXSwL03gFNweuQ4KXEic1eMo05CJ5gimIyx/FEi7bdu
Output for 5.5.27
$2y$10$TSO5Jgm4lXQzLhlt4G2KcOL4j06i3.BPJ8cL7eTZfP.S42bzsRDJe
Output for 5.5.26
$2y$10$O1H99z2brycutYL72TcLPeMZ1z2no0vMV4aoLeUmR2ZjTNscWA/NC
Output for 5.5.25
$2y$10$cf69nIvThMjlF4ZhQKCQOeP3GFYLLY9qJ4eaq8.wJrnymFN9RPhJu
Output for 5.5.24
$2y$10$o9CrQ9byKlqnKe96ZIF3ueA08scwmIm315OvfIoGTpm205gsMC4HK
Output for 5.4.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/dZV5b on line 7
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/dZV5b on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/dZV5b on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/dZV5b on line 4
Process exited with code 255.