3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $cost = 4; echo password_hash("test", PASSWORD_BCRYPT, ["cost" => $cost]);
based on 2YSMg
Output for 7.2.0
$2y$04$nDMpU5vpl5nEDr0JL8SEyuSgq6bo1V60.rHmAE0x09kpzz9UtbcYa
Output for 7.1.10
$2y$04$B2GTuoEwtQkPp1qJPi1RW.gGsAmP6QEsztMLIhHZsZJaE8kdMM5cG
Output for 7.1.7
$2y$04$Pv00dly1Z9dXWNWNsnVRTOnRlSAlAWOGuNtEI4B/pL5WUiBoY/JeO
Output for 7.1.6
$2y$04$BjHtXPtvjCcD4koc6J//COHxDOiLHkLiDnY2lYtdqjubf/xN6Mntu
Output for 7.1.5
$2y$04$Lc.iapl2w7VzZP1v0Vpr7uy4PTPwJLJquIY20Q5NbxMYaC4V2DqFW
Output for 7.1.0
$2y$04$6t/5Zec2EZEqnA5VoNSJ1.P8On6QLnQYjE/Lmkg.P6FJuiyd1UKoW
Output for 7.0.20
$2y$04$j74cxXTWyC5TAQuIiz68wuHCpu5XWF1LFIWCmckivgLRzx6ooN16O
Output for 7.0.6
$2y$04$Ib29sUqdBNYYIiD0DEjI2ONku2m7oS9DfJecAMT5DG1lOT.xDmAca
Output for 7.0.5
$2y$04$hdsWlXlSSznFWvfFVwttzOeBdEv26RHYh1JX7yV7S29lfXMwzE.9i
Output for 7.0.4
$2y$04$LK2pbXq./udXBHRibwYRO.e9AQ28hMWDr29NLPqxRpT28rT76XyS6
Output for 7.0.3
$2y$04$dpPhsSyyJAPXbXHIvydvdeD7jdbjlSl3NhNX/nGs.1oQt3QPYNOH6
Output for 7.0.2
$2y$04$7Hykn6P/V9glqYuN.yVqVewURdqkF3YIC9lfI8I.jciH12cTkxswS
Output for 7.0.1
$2y$04$JRr098P5q1BIG5oWC7fkZuWOrCbFqU6p4UNXSaRrJUnY1rqMVzVd2
Output for 7.0.0
$2y$04$Sjfdsb0LhewIiwSksZEzi.YjECLq56UfN7iX5VWgGhrFXIgAoTtc2
Output for 5.6.28
$2y$04$3ShgWpGZor.J2mb/NYOGcOGxPT98Afartw0YLYcwuq4kjeWS8lTJG
Output for 5.6.21
$2y$04$PUETKRqsl9YU0tNNye.GZeUwc6P/iesrryB.pDw/MZ2t.gF8S8AyS
Output for 5.6.20
$2y$04$NzeAayCyk4uCsKeIo03Z8uSYldB8DX7a6yG7ILDnc822nB2GRdhn2
Output for 5.6.19
$2y$04$/hT3gm6Ueak.vBW2ZjWriOhh7kt.Tl0aR/0M3XMdQcSi5Q.teE/yK
Output for 5.6.18
$2y$04$3/gEZzjE2tyyyF2KNEnCBeP7kYL1OF4Jmf1VD.f8zCImUKC0Txa62
Output for 5.6.17
$2y$04$GEPQndOQVjb3az3EsAPmiOu5c2jXIMzWnB/.V9QZyrhdQKBoV07K.
Output for 5.6.16
$2y$04$WkQEBAm65ailHUlnk8sAQ.dN7n.H44XnzMDdoNnz6x/kBDtNn2XaO
Output for 5.6.15
$2y$04$0WJG3PstC3bus.Gdg5xINeRaXabjoyWi42ObiClZUZuKH6VHSBboy
Output for 5.6.14
$2y$04$eyhJIQfDQsoYH8gtwNiRLu4rDjV4qMnm3ILuwARevybcckLGfF.3q
Output for 5.6.13
$2y$04$QuqrBBCx6cQ5.BN0juHP6eQzC4w7vthqzZQ3edSK4IjEISe55dcAu
Output for 5.6.12
$2y$04$V9pM4pWi12dv0bkMK7yfX.abMZyYhBvdB0APv01v4XOM3HksP.owa
Output for 5.6.11
$2y$04$.2zUouF6Z.6yapKtP0MIjOyFv6PEaD0/wUjzbV2HWTR7x49CgQgny
Output for 5.6.10
$2y$04$KQ6ZWhFDwa0uHH4daLnlO.YC3lJD7SZg8uFxu8z2bcOFupCf2OyeW
Output for 5.6.9
$2y$04$Hldc5y6vpVZnp6H1eNRdgOPCN5Op5w2nKxyHjHxQIeMZ9iJh/uwNq
Output for 5.6.8
$2y$04$XgN2L5oGloMQbtBVn6a7Iuw59twnSJxCxN5aYJrp6iyF.klmeMFRC
Output for 5.5.35
$2y$04$S3JODnIEYNyepxqY2TLmhupF2mztqJuPfbdvocWdSThcgxLseBkYS
Output for 5.5.34
$2y$04$v/P1ZLhXk5Fpi0vhtzzB4.19/e0oYg.1Tuot4Gbw0871zaAi9v1se
Output for 5.5.33
$2y$04$FAvh8N93ju7Vp2i43KlEE.dZ.AjlSWA5MSehN56XtYbBcyoO5dInu
Output for 5.5.32
$2y$04$B.0fDgFYL5fxyEBhO4pyxehp7dQxh1Wd6ikrl62xih/b43sDHB88C
Output for 5.5.31
$2y$04$k1IlVBDKtAJijw.Fjii28uS7QbqjNxNHWDRyWU5duUwwXSVfSR.EC
Output for 5.5.30
$2y$04$Dk2BiaEHPKkB8HGhYSt2Me54XdDxb0zTIkSEm6OyocEWuPQGTKm.6
Output for 5.5.29
$2y$04$ACvWyhNcVddX0j.N.LgkiuknkHyuD4IJ2XPBqheU6PU5dnAnhW57O
Output for 5.5.28
$2y$04$3I/GTD.oy7UNSVFRuhumr.ooDjKhT5gsf21t1c0O64GRQfxucUqJO
Output for 5.5.27
$2y$04$b2e7A4wMmWGMt.xPf9fereYAm5MPirOvbV4nUiLSDyb.zMXnpozfe
Output for 5.5.26
$2y$04$kdfa/9qzaITN.ENJZHgHMOoVSL7RsawW7zCiLEqq7Af6qsCEy8vXq
Output for 5.5.25
$2y$04$BhxbjckSVBQrViyFmYFyF.iVThINrlGMNfia9dvxOif74X7t/5Jle
Output for 5.5.24
$2y$04$S2I9GdguB2e66MkoeNxgNOaWnd4mrUD9akaRQ2Hu7ZFntaKBv3XaK
Output for 5.4.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/BZ2jf 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/BZ2jf 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/BZ2jf on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/BZ2jf on line 3
Process exited with code 255.