3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $options = [ 'cost' => 12, ]; echo password_hash('$plaintext', PASSWORD_BCRYPT, $options)."\n";
Output for 7.1.0
$2y$12$RhAKkF.OXzIir0YOAcj.zegsrbXK4QOOiEaW16mfvDZ46PX1jHexa
Output for 7.0.14
$2y$12$ucdafPkaHIayaAfdLGTa7.9.D/uLtU3tjvGCl7Ck5jLmGM/T/aLiC
Output for 7.0.10
$2y$12$EyUUNPOeuF9jc1DGRPcODea4MjGwBYLHqej1G9xahS9pDi92GL3Pq
Output for 7.0.9
$2y$12$af8aOWCb.pudWXvrurDOr.hSHmBI2XDyBJePuOyRAsb8WDyU9jKi6
Output for 7.0.8
$2y$12$FBcLR26KN/XFDatipnkmheHkBuGzOyPwL5J9.I4QJ8I65ut4/sgzy
Output for 7.0.7
$2y$12$/F2wc8sJcg2ZyHVEJaN..O/cjuvFxjIxswbnOHfv9N5YhCbYTwK9e
Output for 7.0.6
$2y$12$ep1YI9kbA9J/zZ07JXfhMeLQLnCwhCFELnSfZXGn0QIFHj5on3GAe
Output for 7.0.5
$2y$12$i6QeeNdzWpz5xW20YGlyhedvwpAmVQZ7giTOGTVF8j8irr9XaHdzG
Output for 7.0.4
$2y$12$o.vegF0EboHJ2caAYDwtP.Oj9gBpJLg5mcMFVW7ETI/gbW2xQSHzW
Output for 7.0.3
$2y$12$HeGG1h8rGVY7KTcm48nk2eppVlK0emHcTC0eOhUfGM9xlTVX5C/8O
Output for 7.0.2
$2y$12$LotL2cAJln8ti8qzEY3zd.kvxV61Uwi9H.9XJni5Ttk91vjKq3QDu
Output for 7.0.1
$2y$12$0qPjdLdjTyDJDUS1pA/QV.4nfzEVeNoQ3BvKmL2ZXDVJT9zvj3c1W
Output for 7.0.0
$2y$12$nFid5Bus4xiVCNhM1ij5V.v05FR9V536S5zCJkY65O3Rkk262t3Qu
Output for hhvm-3.12.0
$2y$12$mrCH7Ct2Rr71EcbZthmJnOojsvyzKzgcAGx230749E.8ggIVfNx8W
Output for hhvm-3.10.0
$2y$12$GiLJFP7wzDfJkTH8JdvBF.yUwxQVhmOdoMKVaGEcy4diM02nZ2Wfm
Output for 5.6.28
$2y$12$JhsFdXGcP7xWHwXFGFr6ZeCd6TWYxcjej35U9P/hSu6kCETw5icY.
Output for 5.6.25
$2y$12$iKv0giWWoMi7JBgXktqAEe9bM3I8UNI.5iLwfcu40cnGx0jMrjbCq
Output for 5.6.24
$2y$12$b7yUlRSBNMF6j3fWxuleZeJHz1luGkuT/MZKRNoNqJ4jSkAyWAvka
Output for 5.6.23
$2y$12$n54H7CxlrJQuHICtQ0VvROpqCsLDF52ng5EW.BSA2X.B7RhLDRYJm
Output for 5.6.22
$2y$12$t5drRpDMW66vK3QyID99duV4YfWciVrlgJCcyjqDG61KDLF3IZlwe
Output for 5.6.21
$2y$12$JShVoyNdiBOJVvR64mrNWug66R42ENulX4mGvsa0U2mnw9tM33AfW
Output for 5.6.20
$2y$12$z184tfWUzB64a5N7hH5aL.Yc68860vZv9sCnEq0EACN65rv8/C2Fi
Output for 5.6.19
$2y$12$iomxwNEvNdT88r.s1SuXE.OceLw6jPbvvNSPMOyIGNCyT3QhNEF6K
Output for 5.6.18
$2y$12$yEsh5BYerOP1dmTCnfArUOjyh8sZyV3op9zlG45I.Cw/mB70wKe1y
Output for 5.6.17
$2y$12$73RIygA5xBlR4K9sFyRKUObQd9LTPLLjhLX0jfvrSi9dMI2UwvhSO
Output for 5.6.16
$2y$12$YgDB3sfXiOOPpPhDNbJfOOOsua9q4pyI5jrBG0DRElVQUw9eDD/SG
Output for 5.6.15
$2y$12$ZfPy76izuh67Uh1zgnTsJOeirdoumHP8HKvTrEYeJfrMPKQVsqhqC
Output for 5.6.14
$2y$12$WrqSscj3VXReLma0MRWnQuXbhG5fk.wz5vOADJanwmDGIvuc6re8e
Output for 5.6.13
$2y$12$EESiTqAYh3dR8W56x7XIHuSg55FCbKq8/./fJyWqMSTVSac0KC9vS
Output for 5.6.12
$2y$12$HyXZQMG0TQWwdIp5GdVOS.Ooor8LATwBTEAl20aGtViNmed18ZTIO
Output for 5.6.11
$2y$12$PcK7n9lCb9xPP558RZnIVuuZb3nufyWeLGGirv6bofoYztqWZ978K
Output for 5.6.10
$2y$12$mbX9h2LiSPNfsAB2ujLLqenit7Azmxz1orI/dGYPmQBBhIG0uO1VK
Output for 5.6.9
$2y$12$PsjOezofKYd5ZpnpmcWQUOhhYwGTvnwelwMcJ0ZZ72u672KxjE9cG
Output for 5.6.8
$2y$12$q4eihO4d7ddpp6p/dRrqwuAEKgtLKydX79V/IOqWEUfxG.v1Epj0G
Output for 5.6.7
$2y$12$z.gnDGU0aVFcf7GtEoiRK.8UdnYV2dYTg1zKIoqMu4C3fobu3zN/W
Output for 5.6.6
$2y$12$iGuikKwcCTjKOD80Xq1ra.p9JXPaPGgzSyULuO2AynR.Pv3ovLVWi
Output for 5.6.5
$2y$12$fZdO9N2WjMV9VHRa/Y/QF.obIH4PhzuohtornBQDYfWTWu94.iyGe
Output for 5.6.4
$2y$12$GwiSn13EqkTDeyOomNAkyOb3dAAj47Ct5BrYeksxy.J5RlSC.mUke
Output for 5.6.3
$2y$12$udAbdsygWRzxl4vmgYx/pedJ.OS7g9sB/aZfS1Pq9H1iW8wOWcbuK
Output for 5.6.2
$2y$12$do0ukWHCp4eJwu6i0UWXZO4DxFg3suz/I30yLduSSy.Lwu6BwENcW
Output for 5.6.1
$2y$12$yt3rY9s8uxBF7Gd9Lht.kup.oO.r0VE6W7BnWn/cWVlEFcmJ2lY16
Output for 5.6.0
$2y$12$pENSk3gdfRxV3c4OGVxbzeQo4zXVcKwX1ilwhIbItogOKt5CmnVHG
Output for 5.5.38
$2y$12$2mZtrKVL7U7gWGouXPQmWOriXkLkr5WX7H6nD6./DH.W/SFIEU0lu
Output for 5.5.37
$2y$12$Fs3plBsKe3225ud9vVt/e.P.Z9sUKK49utLCs.tRjn6PwX9ctAzLG
Output for 5.5.36
$2y$12$sYshtC.Ll4BMHpYm9IMCR.fSxT.pwlwdweW.ycjmlKtQk1jL9Rl8W
Output for 5.5.35
$2y$12$QWPjyRQdfQSoP2XSmg1TKupfvD3WIfdogUSFuwPeLzZK4TiJl.ZC6
Output for 5.5.34
$2y$12$GuBlUArSXmULJsr9pnEha.i82GYDtshq1Kfkw5HbVHGbvll0CDChi
Output for 5.5.33
$2y$12$EDEE73jgyazTCR98hWsQvO9DcG7.DMlVizajXY6DXVbMEcV1srvcG
Output for 5.5.32
$2y$12$9DdHePrpJu8geY8J6grBze8Odu09fMBckg0R0tFyyety/VP0EGHIO
Output for 5.5.31
$2y$12$OGCJ/3hVPkM9SfJ0WdnQWeNrZTiA2HK6IVmXwbcPnH3ntIAc4dmFy
Output for 5.5.30
$2y$12$YMYwafpeRecEGRvreztj2eqAVUgcKHL41UU/can2VYHAPdHh8cvf.
Output for 5.5.29
$2y$12$..yGx7Rzr1mbK9mj.1lJl.oYpDIoDCgY/h1RJGXZma1x6ojQJ9Qmu
Output for 5.5.28
$2y$12$mMOs9783hud6GQ7ig0xxUuK2hRyxKU.wRFR1JooavWgH/gHhAKiMi
Output for 5.5.27
$2y$12$8t6SsAUU8KQdBkEK/O4qjOTVVOYtT7.yr51riyZxHHanNzTf6rsUW
Output for 5.5.26
$2y$12$ED7f2wC3/P0BU857ttRe1eaPNhiwoEnnbOLKwEqT3ADdeJw8BZLDu
Output for 5.5.25
$2y$12$jekfhYOQhAOWGifU0cSgW.1F5cRcmaYji5vVD2OJJ1ogYe86uhxgy
Output for 5.5.24
$2y$12$O16aa6xhrr4v02RTsmcL9.8Tu62JcoSgNXv3gU2E0MaP2lfrsvJXG
Output for 5.5.23
$2y$12$UWMCOq4EfBsYubc9FdbIie.kNO6qTtwGOZ1XnbtpUfaw4gE7W.ILS
Output for 5.5.22
$2y$12$Nuu8QqlFel9RDdBiTF0EeuZex4plV8SwhLfg4rA3stcoSPQgHcJca
Output for 5.5.21
$2y$12$R25H5fteTrNoonl9r.dD4uQ5YvM8MIfTmj25j9G0YGUt.jwSMInZC
Output for 5.5.20
$2y$12$X70iipzEI447hjH9yq95LuVf45lnLDiOCVJNXtrE/58/AkLPMybWK
Output for 5.5.19
$2y$12$6GEYcr/CrwHQrC4vn5dCv.T1i8ndCbesoOLeUhVrN5Fhl/F7LcnHu
Output for 5.5.18
$2y$12$0i2QEJZkSRoFWezBn.ZC0OiqzqMSojgJcHbtUBtnj1bDIc0acdGEG
Output for 5.5.16
$2y$12$oTEM1Gf8SvxTXSm/qwLSCuAzEC/BF9FkkmWHuSKnB6Vq6x/z0wDM.
Output for 5.5.15
$2y$12$5vo1qg9yoEXhbXN.2.0D8.E5lHai5Otsadciw7OShO9ynVDUIMElK
Output for 5.5.14
$2y$12$akC3wT5LZ3uAifnlX7kATuSfFkm7fZTZhL6mB/XyEy8xe9kvg9SPW
Output for 5.5.13
$2y$12$NoIRUABNgcQKNlpUIGDBGe6lNDUHhT/7QM4OAZQleJZLpDkzlGvs2
Output for 5.5.12
$2y$12$97umkcxxovdvG2gHNolkzOyvyQIq7J7MfZa2XkQIjYYInRsPBZtbK
Output for 5.5.11
$2y$12$IjVxSBsRvIEHONym3cRpIe7DK8ncveQwdxwJy.Hr2Qf7/wyE3t8pq
Output for 5.5.10
$2y$12$031xz3PnhZhNlfWbdzpFle43ErbnXWZx/s9wkP0GGsLTY4sfCIIci
Output for 5.5.9
$2y$12$yBai2SMRys5Oi9oqCZ4V.ua55tz49EH67wrLckeCXB2USPiNB5XVW
Output for 5.5.8
$2y$12$.1if0/N3dAadT.mSydS1E.rP10R3/PvISL1pMOnvK0r.DxKFDCr1i
Output for 5.5.7
$2y$12$Tgv/blLbogUKVcAUsMK8lueGd44GuJ1J.FcMxmBvqIjPN5YMoMB6m
Output for 5.5.6
$2y$12$nSfi4XjL1zYzJVJGQyYCCuIYCawgofCaMP5TsGAZUE9vjly/cqQM2
Output for 5.5.5
$2y$12$0nFo1URIk5t9fRI0dhhPheX3nq9Lo/1afYlyGuYZwrhFpXMR8dqQa
Output for 5.5.4
$2y$12$6B5GVfAB3o8qTOrOHFjJvuIXwAl.9frc99D9.5pfuvWFIvB8dLKBy
Output for 5.5.3
$2y$12$57J7bGNfA/Ci.249WOFCa.K37KboWex5tI5FSJOdKwA4Edz8GLl66
Output for 5.5.2
$2y$12$MLAQUZQ95.TyR2eFYVuRYe.DOWUnk5e4QAxTmFVJ2x/FkIiYg09jm
Output for 5.5.1
$2y$12$KQIsKd/LlqcASI1I1dkkV.EhCtpwLiiEAd80HYO2XA.DQ3d4FMtLe
Output for 5.5.0
$2y$12$M3XBZ2Yr9F/wRkXSwJ2BDuND.SxPlERRRvdAt.6QuFQRY8UxLUSOq
Output for 5.4.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/sKSTF on line 5
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/sKSTF on line 2
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/sKSTF on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/sKSTF on line 2
Process exited with code 255.