3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $cost = 8; echo password_hash("test", PASSWORD_BCRYPT, ["cost" => $cost]);
based on 5SDHc
Output for 7.2.0
$2y$08$abx3cNsM0Uk.PbirhGRqmuuvslQz3pMxnznewlOM26MWDcJJz94lW
Output for 7.1.10
$2y$08$MId7KcXwsdf6yCXOKnvIiuXLWVmSxeFTF9OWbRQ5uP58BBJ/xeiK.
Output for 7.1.7
$2y$08$MT9sPz1nvV9842h5pKjs9.VATo16uZW7Tr1ZFEQ/rEHo/W3i/QE/G
Output for 7.1.6
$2y$08$WpfDOdESnAwJ0skjAqxTxuCacHMHsIcmtwEFX6pEscfY6PsZ7l06W
Output for 7.1.5
$2y$08$d21vaw73opxd3wYCLbz5e.C5tlgUt4egmArRRslZz4i3yhp2iWTf2
Output for 7.1.0
$2y$08$dWMuh6oFkppPwf681aoguepRZblcLIxh8jpKsc.J/7CQX3M1sOB/m
Output for 7.0.20
$2y$08$vUTN1P10nYy8A.YwBCUnX.CT6Z8zipBYhE60fhGzil1XIP.HXXocK
Output for 7.0.6
$2y$08$mEHi7ju6Db83i3hqTJerOeYgQlr3w2Z2eIQOkHl4S44BMfrYlDfCm
Output for 7.0.5
$2y$08$WlsPqBCfBsSO2UGwvmgmPe1nqooa7wNcm5hTN61XXJEi2TY48IGyi
Output for 7.0.4
$2y$08$UzpiVoMgGghhXm7kexLz7.YR608tcK4LIkB2LjcWxO2FufBV1Jjza
Output for 7.0.3
$2y$08$k0SEa2sSpwLjcaf3Z7/ftubbJylbryid6knmk5hl6cKBlPoBrWLzm
Output for 7.0.2
$2y$08$HCdB0vkhmRntldYFbMX9w.4dj4/k4nw/uwOZZGO2ISnfewfguyIO6
Output for 7.0.1
$2y$08$Pfbre1R/hYm5SJTTHaP9DOI8I.cfKtkNHgprBmoazw.FtF/.oh5BS
Output for 7.0.0
$2y$08$r423adC6BaYVC1j9v6E5d.lXlbdhlDGgQOWN3WltfylTmRYvkskX6
Output for 5.6.28
$2y$08$tPy9mMp.SFXv2xMqWnBV/eTzVJYmLxnEGw9TBfY1pctBC9qeBx0X.
Output for 5.6.21
$2y$08$dgwqlzXhG8OMEB7LE0xW6OdPMkCgdyeQfpouq6PkXZV7GggIl39hW
Output for 5.6.20
$2y$08$zgl3q/jWWrvaUw5VsK4NvODH0NXKSiw2RJK4WNb32tUCoHlKiKc/.
Output for 5.6.19
$2y$08$3O/f1jPUqcMZKli9.mey7.1FNEiwMXxhhogCI4SMB6vtmVOTIjMna
Output for 5.6.18
$2y$08$yroKNvhIWXtJDG9VZIahmeOCA.QR361JBZlaEez0NlCyYXZi9asyW
Output for 5.6.17
$2y$08$CLewMLeQHuC/TFhFrP.Er.WXteSzO93t.fFD5EZPkHPanKOBkLsQu
Output for 5.6.16
$2y$08$UpdXIDRGvs1sOhv0mQUiFeWVWBhdTl1kVcqO94U5GaDTq6v5gO4Ca
Output for 5.6.15
$2y$08$tdvZBiwJVVz675A04UA8Q.5FeQTTHqFeKiDxZr2j5YedI.Xxtbjjq
Output for 5.6.14
$2y$08$2DBBwgR4RenMZ.79Ciog/.ALs0hymGUr8Ayl7XpStNALVBoIoiLs2
Output for 5.6.13
$2y$08$v4OAm/9x.iaHO4Zcd/OS5uJmAbrzeWBM75w8ziukIBdQSZuK6g7Yu
Output for 5.6.12
$2y$08$ytlo07NDSW.dFYyIBUNueOxrueKUcZFSH8lGnhTYug6h48hNb3EkC
Output for 5.6.11
$2y$08$LzZ88DIO7TSw5buwbYN0gOX1CJ4IVR6mrDSlDxE3PV9PLE6FYpqp2
Output for 5.6.10
$2y$08$SHwja2OT.4.0twMZB4nsP.DytaLg3Nx/5lxZ/HmFoB2jNOUTndb12
Output for 5.6.9
$2y$08$M0GNmgrmBXuf7kZEL1YXLOFKIwviFqhd8Wir7yNH1pAPY1FT3SL9m
Output for 5.6.8
$2y$08$P97C4HPemPCZPKASbSPL8u3SQwhhGxlPEklKHlXdZj97t/ZjVoYsu
Output for 5.5.35
$2y$08$5rz4EhXs15a23p77xzBa5uwiE.BjzVEmnz6fsWONGWBzN0aNrcLYq
Output for 5.5.34
$2y$08$11.WD4nfcVZfyH04zaUqG.J/90W9hEMyg1zmw5wPfCeB/uDNx2Xxy
Output for 5.5.33
$2y$08$tev8X5ZT6jyAn/9KtHIu/OxuXQnNP2ecfO6K3cz.6kKT6T4Lhnmlu
Output for 5.5.32
$2y$08$mIeqfCHrz.bo9VfEmQOxgu9qGk8NKe9jqHfWFC6TD8Qax/OuOyKIy
Output for 5.5.31
$2y$08$b0FUU6.nKR8lBctQUCW7ne.gftkJg9vAQO/esOXf10DRmTb0irJ92
Output for 5.5.30
$2y$08$B/4c804HUmu3zoGRDbhA7e.seJfmeAH0pwvSnTEzj0kn6niWoeqAW
Output for 5.5.29
$2y$08$Aqz8cPB1E9GWvVcwaNEgROyMZBSatzy3RZJBriYeZpo5pc2SGfE3C
Output for 5.5.28
$2y$08$Y3J8u0f/sommBGKEh4nf0e4nBuWKjzn1EhvsNArca4H5GCdJY6Mqi
Output for 5.5.27
$2y$08$Zyl62b06EsH0TL54e96Apub0cE8ealDw3A7XohOlaL3sy6g/uYKZe
Output for 5.5.26
$2y$08$wMALqjWGKGTzV8UFHXPiyOJIEnnr.lDmCYSPndmzVtyqvEaNghwGu
Output for 5.5.25
$2y$08$/7ezn1O3y6W4FB9RDVLZ/uFC4aDA1ZTsPg8DlQKpOk76QPl6Sjl4W
Output for 5.5.24
$2y$08$oXp2LaJPvTcKlgKX5KRQ5eCMqotgnAluYE5xG/khjVKewsOrJ7V1a
Output for 5.4.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/2YSMg on line 3
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/2YSMg on line 3
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/2YSMg on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/2YSMg on line 3
Process exited with code 255.