3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $password = "hi"; echo password_hash(base64_encode(hash_hmac("sha512", $password, true)), PASSWORD_BCRYPT);
based on n2Dmn
Output for 7.2.0
$2y$10$BQb5EinXh.PHOx1yKjgtHOz0ezZKq2PUQFpLG2RIFY7JbKEtRRxo.
Output for 7.1.10
$2y$10$Hv75SPI/U621o0zf0neAweeCgtS3wKbtfgLEuWjPo8QPtiZQJk58K
Output for 7.1.7
$2y$10$aC0d4..xo/vYi5dkP44gbuK44k/S2VoykGUfQTDvBbvVCGlPV7o9K
Output for 7.1.6
$2y$10$nEXz/apvy13eKagb9hlxr.igqcrKDA.jiWAkqccpZmzwQut4nQor.
Output for 7.1.5
$2y$10$6hTL20z7vIqlGjwvyvCQ7uS4eqyAO/ia/k0REfprGdTRjczC4RIuG
Output for 7.1.0
$2y$10$rqrAfzjkEjV/TnIzLYcQaeQ9Z11j5DYNFyGn/QMUn5wCq/pCdFhaa
Output for 7.0.20
$2y$10$yLnAtaudqF4rJV.4iWDqzeMAgZKBUuHi1DcQDRFnVTJNnzTv9J3dW
Output for 7.0.10
$2y$10$qpBY0KZpzPx5337o/l12feEiM1PXyu27iMTOuW5V0s6ZY.NDS3AaO
Output for 7.0.9
$2y$10$WVth1Ex//RhZLbThDZtko.rV/s.phHPUDRFWuzHIlB7.JflVg4lTu
Output for 7.0.8
$2y$10$3dnOJTCyCy4gByR1ka/msevNjb/WvNOIPWYGlIoeetCajpl3Aveni
Output for 7.0.7
$2y$10$9ZALX3WqvmK7u9bqvjFqD.mCnUvGh5CgRV/Key7HB/ueopxeUfn2e
Output for 7.0.6
$2y$10$PFwECqHpI.URv7fxDYCvxu0.Mco2zrvdkZNbfeBMRAJrc6d4T1v4C
Output for 7.0.5
$2y$10$B.hxUzmpYta.d90vpRP51ObWcHY7R1fyWwIMeNYUNLGwrQizSvXLC
Output for 7.0.4
$2y$10$XvNLb8mN54dDZgBGL/Tt3evbvpNtPD.B921aVCu3RSYu81GxvBBFO
Output for 7.0.3
$2y$10$iomix63nEdYyZyw96y541.1.ukMqdYQ4qFapw.LV/lvwrgppVejPm
Output for 7.0.2
$2y$10$UW6occFMuVWYCby4pZVwcuzQqdfiYg2bO4c19EchUOBaa9yWuo4p.
Output for 7.0.1
$2y$10$Y.vs7eikOeBI/rY0LANc8OwB.QWbl2fdGrs4V7DkF3fV6z1sF99gy
Output for 7.0.0
$2y$10$3ua6WzPUgc/PBQaQK1/.1edMmR.o/pcLFPdcl/6c7kUO2pVsnLj6G
Output for 5.6.28
$2y$10$mMR6d.Tkv0i18J/RkDLUyuJJXBL9KlZxJnadcX1B4HjLL2yi11Nm6
Output for 5.6.25
$2y$10$g7LdhioiaDzKfzT5uJKn7u7G.7Sr2uUCab/f8O4FBXKIWzkOVauE6
Output for 5.6.24
$2y$10$GpMyzOnr8oTP0.5HkS5xtu88K7z9UAAAV/T19mhsjxkKoTZBF4Nki
Output for 5.6.23
$2y$10$S.PD9c0r6zbBz59P8Xoda.jdmjufJQaOERJfZ4R.QYR3l67SGOyNa
Output for 5.6.22
$2y$10$LI/npTZxAHZotx5rFhW1D.hcIeA2PZZOf88LuGGAvXD4lhE/Uhnfa
Output for 5.6.21
$2y$10$2gDHtsyNQrSqyFRsuWN0EuiwTz4xDi1sub0jhhJYPFZT7dii7hVN2
Output for 5.6.20
$2y$10$WHcCN6EN2zy1aM.RzBjOZOnDTwqueXWssl9ZVh7H7Y4YnaH5IxjbG
Output for 5.6.19
$2y$10$OGkgnLxjGBS8Zacap/jO2.iAJN8Kdn77c7TNkYB8v3uqBabwOQ2rK
Output for 5.6.18
$2y$10$d7DRYgkzbhfwkNJCxHK.n.2VB6tpuiyJYiPUHJ9q6..y.FtWIr4n6
Output for 5.6.17
$2y$10$exyPQeQJmJFihydiziIpMOJRe4QuzszKwhg6d5Ym8DbTyYFv8Wza2
Output for 5.6.16
$2y$10$8ukzKCH/RVss/C14LdzaNORLXhyiqHMjcKD.b4/zErfYyUFXAmCAO
Output for 5.6.15
$2y$10$LjRZRIBoRyn7Mwkiqr91HOcwuBuP683uZSVUDpC.rwLJHG7pv2/km
Output for 5.6.14
$2y$10$0ivrkneOtlYUA1Fa.PPP3OzQ0cnBsHpApXz.A3AFc.LwtCNfD2Fl.
Output for 5.6.13
$2y$10$yXy1cQqqhSFu5fV42fpvh.DlnzE6mhFvwo5dE1f3KCszvOmbGeKkW
Output for 5.6.12
$2y$10$isfV3LNhM2s0pUWkHiEEx.bmgpLKM9AfsvPVGtlZCp1A5SDRnyMdW
Output for 5.6.11
$2y$10$IPxKjLM8q.cJXeEYGccAve1YqRpeXVXFDNmrFUSIZU/i3EI/ZxYO.
Output for 5.6.10
$2y$10$kUrLjONiNu5tXK1rLFPBjOcuORWf0V269bZPOaFTAHLEHOSlL3khG
Output for 5.6.9
$2y$10$E/hDAmZVm.usYZLB4EnC5eAHgeNEQ7HfjhA6IadH7jh0zCNbAXM5i
Output for 5.6.8
$2y$10$.8xlX7vJZPHEThg4MehSY.vY1EU1PL2TBOX0jgNofF2OoPFoGQoxy
Output for 5.6.7
$2y$10$RTtAt3aR4s4JlIuY9lVHYe/yvG.KZd44Tg1yJbC0p9HoBnUA0OGJ.
Output for 5.6.6
$2y$10$zkmG.86lXmUtO6L5XGGI4ORSI3nKTXoRuWvVM3EEfYsAtqKSZliNq
Output for 5.6.5
$2y$10$x/ZXzthxYLY7h.sGgiiFe.H2U/hzqGLfeF4H/cJehRroqE3SLHF2q
Output for 5.6.4
$2y$10$tKeZcRBI.idbnP43i13lWugTmH/jA.TS.MOaWva0.9gkrSGGdSZdu
Output for 5.6.3
$2y$10$YHfWsKzEsT5aDjwMYTDW0ewXJOSPsM/1AawkAuS1AarctJ6vNzvD.
Output for 5.6.2
$2y$10$9FrfscXQXvAt/Qn8PrQBd.9vaQEvD0HnmbAat4ItZqWhdyGMaYgx2
Output for 5.6.1
$2y$10$DLb8ZOnA219JZsvTtop9l.1ARKqiWgqdWPRL62asZ/V9FRDOkj02C
Output for 5.6.0
$2y$10$tY/XM1Zs3NwQJE98uUemDeXyC7yA6Nh0Rq1rDMGF8MFIhKu9mDBx6
Output for 5.5.38
$2y$10$FZVVe4OW2QbFCtHMqULtm.8bjia2JD8KgSgqh6J8Z/wRfux51LLZ2
Output for 5.5.37
$2y$10$y3X8pDXMitfnZh4Vtb8deeLqQI8686xnkGTEnhXvSOtH4/cZmGbv2
Output for 5.5.36
$2y$10$TxMZgGdH63ENwfZ511NJE.1.dRkuMP5GuS1n./n9uvBSlwQSwGTNi
Output for 5.5.35
$2y$10$Y9n0.sQPKNgx/E47afjhXuJo5/qF7p9B6LFysZCaEiDlDhn17rSoG
Output for 5.5.34
$2y$10$Epa1inBTeJaOt7VLkRcm4OvjmgS5WzW0pCUv95PDkvCoTvQSD0Gr6
Output for 5.5.33
$2y$10$m3vMNZ1RCaXVLrHYQcjoROyPl4a2LxR1i88vlWBCejlIOmS0jLWAq
Output for 5.5.32
$2y$10$S9Yr6k1e2SYkjffV7gfOVucLvkp3ByPeFyRf7HBEiFEQdO3HSEeIK
Output for 5.5.31
$2y$10$tmQycgfoIWLLVcg3Lz1dnOE6AwpWuxWD/eMGDkUyVfnu1nXfNttIi
Output for 5.5.30
$2y$10$XCpWNmxr/YdFBo8xg6Emw.zdDUuOX0RQfbbPL9PKBefFszDJPta3.
Output for 5.5.29
$2y$10$VqwyXC2sopkuiOVfIYZaQOMwvezjrHHY.9y.yuXXQAEY1p81nn74u
Output for 5.5.28
$2y$10$kHrwWAhg.i9e0zwhbBsIkOGX/WRNNI0hfa1zol7O89HIsFaH.L4Mi
Output for 5.5.27
$2y$10$yUf7jyQSM5p4Hrhh5Lhuzu1YlbLxO2vmyeNR0pM65FB.2CuWhZDYa
Output for 5.5.26
$2y$10$2kKzdQ/0AQqXctBhBwN8r.pekM6n5xgx17Sp/AX2rREY7u6klCqpS
Output for 5.5.25
$2y$10$RbMgjz0iNXSn3BW711MuKO35rnUY0DqlKlG.v86d22Zle22wAX17y
Output for 5.5.24
$2y$10$w7unQgvufHNKGcwDJtqghu5GR6Ek3n86ENQL2RcKkkL0/3a/n1A5e
Output for 5.5.23
$2y$10$11tfax0z2BI2q1yEVKL/9.f99LCE62F8L9f/g.e7vq87grKNcKvJu
Output for 5.5.22
$2y$10$E53l1TvL5UF1xszD.3S71.1m3MdJnPkdUPXMRor1k7pW4Frnk3QDW
Output for 5.5.21
$2y$10$KbXFZMIsFYHG26jkLq8PL.8veaIrcIeWPuUX.z.ShU32esFHNU3gC
Output for 5.5.20
$2y$10$fg/3Eyj/RwdFwKS1hvYh1u5b.OsusrNFeGcmL2cdFxbyhV5e68xLy
Output for 5.5.19
$2y$10$sgtNEMN41aJBrNKupeO6W.hrHTDIBsl3fZb71/QoCTzTThacZTATO
Output for 5.5.18
$2y$10$7ruLus9GU6K0/nMn2AJSWutZwnUS6nHb/Drwie/nNVwUbtc0jynsy
Output for 5.5.16
$2y$10$K5RgpKZqaN9XKSI44eHl8eQgl6phz8oIxSswHRcT3xlObcAMCMVDW
Output for 5.5.15
$2y$10$vuK1o6UVwpaMNou8q0sPYui7q/YTgPtU9X5.694CFl4vGpx/NBvz.
Output for 5.5.14
$2y$10$zClGHMAcb5OaEoVqT5whbOM3i7aBS2v1detAI2Ewd2HZK4xm5N0RW
Output for 5.5.13
$2y$10$eosA6FgQ7K03P4T/a2xtJ.8lLmeWBZe6MMqPH4K6eC5u33janBwjG
Output for 5.5.12
$2y$10$xS4ffwMyHCSVj92kutd4I.8.erk2w/rWeZ1QyZoobtFo4vQl7GF1m
Output for 5.5.11
$2y$10$mqmj4OM3sD0CPoLmlmG7E.6L3lB7HFBcJZy8kGfkhw.99hnJpcipu
Output for 5.5.10
$2y$10$feqz1gTxcGcpGGSDq0VmIuLqBR3uKVnAIUQWiMrqgKnQAEXq5jVA6
Output for 5.5.9
$2y$10$lg8WvNZhWXc1qoA8SWJZ/uXRIvtDWWJ5yoEHaYUrKELCbqp4/agG.
Output for 5.5.8
$2y$10$3JqQ4.U3Cvbej1AH17IbOuNlx9KnSbux1R1W7TxHFhNiZ8x1BntRe
Output for 5.5.7
$2y$10$BDd/vs68YWVxX99BpHFxNOxp4v0du5eQTupeI33.vqOBpu23Zifem
Output for 5.5.6
$2y$10$o5XxD.oGS7NK4L/6c2tDL.3/jeyuj62I3LrohWoXjzf2xRm1C1SAC
Output for 5.5.5
$2y$10$t1fx4NI8SKowGtQ/EMew5eITLz2jUP8e8skKovLHEL46NRTo287CW
Output for 5.5.4
$2y$10$yrUoYaeO4SzGE2Px4rioNeqMZEcq1s.bKkD9HUBAIVSpko.ikHdju
Output for 5.5.3
$2y$10$RXNCYtgXMEBaxujh3EuZVuxISnejh6R3.aQ0GGqwgmQ2yFlZDFGau
Output for 5.5.2
$2y$10$Z5ebiE32ulbO1bmJcwkpDOyzWqAJXdf5vVNiTvHjI1EKiLY69w5Xe
Output for 5.5.1
$2y$10$waCMjmyqDbJ1zY3Ui9kiAORhMZDZ5VadlA.qkO/RCy4M0s/5O0QlK
Output for 5.5.0
$2y$10$aD7JA5tlzPxwwmmwd44xHeHhymFk.vr7ycFb4jkIKqGtJs7HsYtTK
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/1Fv68 on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: password_hash() in /in/1Fv68 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: password_hash() in /in/1Fv68 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: password_hash() in /in/1Fv68 on line 3