3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $options = [ 'cost' => 11, 'salt' => mcrypt_create_iv(22, MCRYPT_DEV_URANDOM), ]; echo(password_hash("admin", PASSWORD_BCRYPT, $options));
based on AK8EY
Output for 7.0.6 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function mcrypt_create_iv() in /in/0HH3V:4 Stack trace: #0 {main} thrown in /in/0HH3V on line 4
Process exited with code 255.
Output for 7.0.5
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/0HH3V on line 6 $2y$11$p2jjJBmySfqHB4SB4CHKa.Ed3X.RAzZWhpLzodip8uStGjf3tkYUa
Output for 7.0.4
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/0HH3V on line 6 $2y$11$KMhjaS10zVCZJoENMldJ7eKivaNkPJ4Kuwx95Z1Zzt5jx1u.7JzrC
Output for 7.0.3
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/0HH3V on line 6 $2y$11$B5VfNYG8UYXNodYyERgAhO1ZOB0Z.lFS92zWJt9WyXH.vN3aW079m
Output for 7.0.2
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/0HH3V on line 6 $2y$11$mttpAZwW8yBk1kxjqBMBH.2kV0omcBEMRdKdhnarqg/YY5MC23YuO
Output for 7.0.1
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/0HH3V on line 6 $2y$11$lSgAHvdhUBh/ZPgPKAih/ev8qkJSY4oOAEMc1o3KZZUmi7kM6RGbK
Output for 7.0.0
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/0HH3V on line 6 $2y$11$ErLcaEs/c8ynUotX67IAP.YTmyUf32xNdP6XgikHmexG61by4/9pq
Output for 5.5.35, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_create_iv() in /in/0HH3V on line 4
Process exited with code 255.
Output for 5.6.20
$2y$11$jlLhbN54M..VgVHFvT/u5edA32/PxvdmoGwV1xnzg.Qoi3cgBvram
Output for 5.6.19
$2y$11$yxjJAozWfg/kFxaG0mupUejVSU7djjRRQNYeivg2I7INNUpBXv0ji
Output for 5.6.18
$2y$11$vzHICOm4zzNaf7w/JJImA.Ye1vyOYPMRj6PDj3TYmI.07BkaEDip6
Output for 5.6.17
$2y$11$wQ6l0c.2oXPIoGb2VKpIzueF8r1oyrmw7q47JhMLh.6uwwjaAdl56
Output for 5.6.16
$2y$11$nUTjSB943ldbJmcYLB44NOrxjDYGOiPh8jfxvbA172gePunAI5jNe
Output for 5.6.15
$2y$11$90T9pzNZmS8j0Cj68.iPbuogXXETHwnjgJiIAA4vF58ZRFmESF/7O
Output for 5.6.14
$2y$11$99sTvLBhvIpf2Z1b6BBj9uM/dxvZ9rneuHIBDWFI02Ry/XDmz1xTm
Output for 5.6.13
$2y$11$32iKfREj91nHMXQ9eFkihuIgzXreOuzXH2C2iv9wAb8GC4yGuyiuW
Output for 5.6.12
$2y$11$T14VTUkya3SOogArL/qZIub.cUdHmzayNeYi..901gzFjt8iNbwc6
Output for 5.6.11
$2y$11$rVoDoE9Xsb/Kj9ubBUUsh.hhfggetidIFc6w2FA9p8FvMyoFV2Qou
Output for 5.6.10
$2y$11$AjUSPZ0NZR4XF3lA.PJra.3ZqGPiEAZINYZX2glyhUBoch9VZq8qO
Output for 5.6.9
$2y$11$i8UZNQ5foqtyrV3fDS4GAuNEiXdkLc.8EvjfnOeQaTgtzgNfoo1AC
Output for 5.6.8
$2y$11$tB8jNF2XosTioA1tDuPh3uE9v8.2PncAu/vD5g40vb9pDhDN5y9Pu
Output for 5.5.34
$2y$11$Xh8h9mn8KD7LpysSjLfvQe3cEHYI.SXWwgGkOCC4jBUJoIjp0rTmu
Output for 5.5.33
$2y$11$bLIycPQh0LWWdnVS4ND59eZAIFMx.TucaNpm4obRS/L4hDJnR7ccC
Output for 5.5.32
$2y$11$BfqHB5Qb8LG5XPDXFe4gr.BvHG3/i6DFZm4.0LehgzQioCPB0vJ56
Output for 5.5.31
$2y$11$EWTF..m0g63kFVaPbhWiIu5tsOy9Xn.kkLLBcuehQnqRSt6O5Y0Du
Output for 5.5.30
$2y$11$AFQTd7na1qpO1acJKkRLmO1JNLpMRVDghzKlEtdZb1hU1nyGRHpDG
Output for 5.5.29
$2y$11$8A24GwaX7EmiPKFvobN4k.RMx5MHT8hxA0D2jdZmNSEIVA2HR0CFa
Output for 5.5.28
$2y$11$VST1G5cq2Ce0AYfqlmLvueZEjC/m6FcR9jQPaW8wDmnXkd19.fRZW
Output for 5.5.27
$2y$11$0b.oRRyTbfCYhV5JMYAtrOauQOIgBLsD2/vzEpJWvZ.b2DsdC672W
Output for 5.5.26
$2y$11$KDVLwKWqCVzRHIJ.fbT.XeVGDbecegTInvVfhEAN2LsOPX0SwjUNa
Output for 5.5.25
$2y$11$7.yYK8uSyqsv0eOVkrZKauAQ4fibP2xSyZPiZm1UNij5TtdMZw/Gm
Output for 5.5.24
$2y$11$UAfTY1HlDZGz9YAp.OP4t.q14tQa6YayJxwae3pWrbcUUt6kSMp6G
Output for 5.4.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/0HH3V on line 6
Process exited with code 255.
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/0HH3V on line 2
Process exited with code 255.