3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo password_hash("rasmuslerdorf", PASSWORD_DEFAULT)."\n"; $options = [ 'cost' => 7, 'salt' => 'BCryptRequires22Chrcts', ]; echo password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options)."\n"; $options = [ 'cost' => 9, 'salt' => 'BCryptRequires22Chrcts', ]; echo password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options)."\n"; ?>
Output for 7.1.0
$2y$10$.aTInONYueUhUQJO2Hu5u.Y3Hf1psOZsp1qZSqAzTy4Lo.GDZz/Ey Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/TTEGW on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/TTEGW on line 14 $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 7.0.14
$2y$10$O9JAjvQdZqghROKwkjZELun2BMMHpIhXvqE1rvH.irzk9cUidRTfa Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/TTEGW on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/TTEGW on line 14 $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 7.0.6
$2y$10$EqZzmB0GhWOPfV8JKprmZ.D/t7Q606sAxNzzxr6QP.ei8adwtBzCq Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/TTEGW on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/TTEGW on line 14 $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 7.0.5
$2y$10$DeL0NiD0oO8cX7WRG3SHvef.xfvm64PiEagS5o9rvv7A2T/YWVYwK Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/TTEGW on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/TTEGW on line 14 $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 7.0.4
$2y$10$GW049YzXI3.4C6XwDOPrF.wAUaFGTXN9JxzR1fImI6XBCCgw/dRSe Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/TTEGW on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/TTEGW on line 14 $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 7.0.3
$2y$10$gNQjfqa9Y9k8SDOr814GRucMrPgYd6wYzuevhUZPeQB6Ncl1e1wOO Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/TTEGW on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/TTEGW on line 14 $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 7.0.2
$2y$10$mBqRQAoX14oAmAg6FX9hseUfPT9cdpJX5Rm7dylUgo9NPr4OAYHtO Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/TTEGW on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/TTEGW on line 14 $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 7.0.1
$2y$10$MMc8VE7c57I0I9DosUYfHu5u/NEtloQjJF1h5CUUJS.watwiZmnCG Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/TTEGW on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/TTEGW on line 14 $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 7.0.0
$2y$10$BRDvOYiA0WRDR.KcHr70SeXlydukmjqNpfkd5NDnzZRmTqyRhywm6 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/TTEGW on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/TTEGW on line 14 $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.6.28
$2y$10$.AE/Nimgqi70cztRT7Owhey/7QKexxoayVsucBpkAuhdjYxL9FNbW $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.6.21
$2y$10$ytiwe6Cq8BO9lQq0EZiRbuPa2jsst78dKNUjdQf15vvnaLW/R9l9. $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.6.20
$2y$10$Wy5d8RSHkZSWKLnTJfaCjuYVDtSOnDjnCyBs.k3Nj4S2fPrm1Z2Pq $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.6.19
$2y$10$bzNLTjYv8xytSTtAUfFfxuXtqz/LFJp0x5KnyctPoBakwsWq5NEfq $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.6.18
$2y$10$2C69p8TY/p0HmXLD9xW3FOOzBNbKWMxphsSxvSQ.XLP51QsHNqvBi $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.6.17
$2y$10$7xuPHUXwrvYUOhGim0yg.exmi1fedd5vVxzszs/q4Aotb73Csk7i2 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.6.16
$2y$10$62BFY0LX.tcnXkw2BVFEy.c4FDMfYy7/wug1ltcCVu.TCHWybz6vu $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.6.15
$2y$10$Cxieq1CfuczEDwAJbw9AxuF1HlOINUq0v/EDedLfE8urhx81fql2K $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.6.14
$2y$10$pzn5DWXv2m77suixp6dN/u0KtqDnUIaMgWXH0mSXH7jQIQ/Uaclhq $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.6.13
$2y$10$aINLFCmYU/GLM4b8Sv8.HOm8eUaw96shr9c7iCvf1LjMYDzbFjVBm $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.6.12
$2y$10$buzJqjN.tz79Wf1J9aSmF.jsPq/L87s/Shpz.nvgdKjvuEZCiSLLy $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.6.11
$2y$10$l2qlnMdEwzbJGcw50TiEje2S84S/1ehie2L8JHS6yUKNG3DkjeY.. $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.6.10
$2y$10$OSub97UpRiAdlMc4T7Q3e.lgYKzsJ85uvmCUIuiRJjEfT5LXkI1ia $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.6.9
$2y$10$t0Tnmar/jTXmS9ROKb7M.uovLvLs9fqcqKfI2wowDo1Ht7zKxxDJi $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.6.8
$2y$10$1swBqmaz9twozl7qKrjDqeL5rSPVrMckzKhTBN/BcSDANwVn0s7a2 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.5.35
$2y$10$dOVpZoawdRVuvtPST3739OgTNiYHLf9sCrs5XSrdY/YYjiefwv7oG $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.5.34
$2y$10$EU5rWGM4yAfx6eeYS90FEujjU1N8XvOPE9hpkaqrmAa7vm9HVi9GK $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.5.33
$2y$10$GGQC05C5B5yF.wSmRUTDnOEkxeOAk8WwtMbE0vXvPTy.DYqQndjx. $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.5.32
$2y$10$v73ED3Ui5OW7CJEuD3l5i.7rO4T0erZq/Zyr.8OttNVzNPAHU/8xO $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.5.31
$2y$10$icoHIuVfCQtCOKciLV7QXecQr96PDT.6f./pEjg2UFZSUVD881dmi $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.5.30
$2y$10$A.EzMA6HeliUXSEQJxMTieeFMAypDyD2xI1hESs/iZHiBs07VNIca $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.5.29
$2y$10$ABQfQ.qWkzYJ64Eb3TnVVO9Q/JgKczFom8V4lnbGmwzm4qdhZhqBO $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.5.28
$2y$10$g0l4JvRc/q3ssswvWUCv..s.AdzpQ.nAkw..YYA20YhnRtzr6ZaNm $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.5.27
$2y$10$9YfJ7qchEqR9UzG.buDmAORc/ETv0jkblpY0JwHXJ3RhY0o6aPakq $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.5.26
$2y$10$FPYzz2reb.CGGQ/JaFKDIuRuy3psSwWA94/5ggPr4s5501HZ8BmGa $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.5.25
$2y$10$JxneRps3/hFRbdaw.RaaMuHE6vLF.RgbHsJfvY1IQiXNVsm55tiFS $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.5.24
$2y$10$AU.FEdcwES6QRKiGhAMg3OIUwgPor/wlwAzAT2JMGLvQgsdW6zCAu $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$09$BCryptRequires22ChrcteJIrZIdm.IhPQo.b4CCFDjRPmO1rWNZG
Output for 5.4.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/TTEGW on line 2
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/TTEGW 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/TTEGW on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/TTEGW on line 4
Process exited with code 255.