3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /** * In this case, we want to increase the default cost for BCRYPT to 12. * Note that we also switched to BCRYPT, which will always be 60 characters. */ $options = [ 'cost' => 12, ]; echo password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options)."\n"; ?>
Output for 7.1.0
$2y$12$MoTF3tCHdZvuixxyyVWFleF9rkFep3ApbC.x3DokrcyVl8ssC2Pke
Output for 7.0.14
$2y$12$FfawhbX1qluqAE3fkfZfMux7yMBz1jjXrVRyFP5hmgLwunLtjNwe6
Output for 7.0.6
$2y$12$/63ersCgGlzCHZtYgRgy8O917azEQSxuB8.mrenjxyj5VT.xP//iu
Output for 7.0.5
$2y$12$zs1Hfn9lvBhfSuluSZDfmutvO9RnT17KFuD37BLLzLz/AybB8byAC
Output for 7.0.4
$2y$12$bUeWJGiYYKzh8djmdSn4..upj7vmAFLtiM17TY8kM7NH4PJnO.N/W
Output for 7.0.3
$2y$12$qMk9EeS2PWXbYuxP4j4K4uPM5rmBS2RopfZF8FBs1pe7BDTia7fte
Output for 7.0.2
$2y$12$hdf9Gl175H9c3MsV938ajesBxvkFkfpztZwS1Z34ml0kIt/eJgEv6
Output for 7.0.1
$2y$12$JOgjrheusp.VkE2d9r15TOLuAcnnIkiFHrDfN7jn3zMVpbLc8Jioy
Output for 7.0.0
$2y$12$e5MHHWLohAcJj63jKPQl1OM88kyhzTVhB4bE4LUH6uQ6B14XKGB8q
Output for hhvm-3.12.0
$2y$12$EgI9/W7wVUEcxE8NMXL/suKTLfdNKVQBeQqWDgE1V7rS.1qvGVCTS
Output for hhvm-3.10.0
$2y$12$YwUIOJ4PQlVvtwBuxqCVyuIPonl8JmBtgt5.FEgYOJeKTiYHaPigK
Output for 5.6.28
$2y$12$nutj22RLbLzgVnQRdK52feuEnEvJ9Z4KExffCWUkyJscc9MkUvYp6
Output for 5.6.21
$2y$12$eetM5q1.DHJHY.z7RuhPjeo4MHqoRAzirUrqV.1SDkjsRE849JElC
Output for 5.6.20
$2y$12$DiWEnj1fEFQE8Gc3wWajVOOvOzcE6lLcwfcM0.iQ4kxgnLJDrrojS
Output for 5.6.19
$2y$12$LCiAJtASRy5x3k6nEPyOEu8NNR5Hc.P6Xwmtwh3Hx38CGEKpkwF2S
Output for 5.6.18
$2y$12$fWlRNKaSxiEBV0jCNvUMy.B34o7hjPd8pASB2Xh2Y/fv0R5ZZslB6
Output for 5.6.17
$2y$12$30q6B4JP3mAxodAtftH50eVlw0Iy9vynQ33oSl89Z8IGRQp3VFm2u
Output for 5.6.16
$2y$12$KZZMApnGEl7nuA/ZeB/OOOwAxhZzC3Nix8EXF6NAdW5zXILO.3uDa
Output for 5.6.15
$2y$12$Kamgwdbfx8afuP/Qxm/xf.8Xpf5RH4Wk5GcKEJybMXaHZNpcgpNRW
Output for 5.6.14
$2y$12$U5yxxmeu62Q47KnOiDBlSec13DHIYuCsOH4FEBSPUSRabajxuov46
Output for 5.6.13
$2y$12$4Qpr.Yk.X6kgRMG1wVHazukm4qPIjeN2mAR7eGlMUD80nteHv5F2a
Output for 5.6.12
$2y$12$qU6433CLTsTY.Hm1l7aXo.x5lUMe98qS5/q2IBfi6W1PRmLsaCfi.
Output for 5.6.11
$2y$12$/O1B.mK8i3W1oeU4vo31R.3X1M9DiX2NC1BjyJNKDCOHSR9Tt3yvy
Output for 5.6.10
$2y$12$AQVVdKRJt/OCC0IdzeXCoOfxK4YuNFy.zeX/U2lbh1fQ6yx2DFLfW
Output for 5.6.9
$2y$12$pobPAg61TxiKF8eEUWO8s.NO0aqCbhjW7V2d5nv3.uDy3o6NCQOpy
Output for 5.6.8
$2y$12$5DmfhC9MMY6uTXEzuw27seuKvkclm/PJT78WmcNM.qBLEEyb/fRiG
Output for 5.6.7
$2y$12$yjQzn978JhzCf95/gYah4O.82/31SigpQ6IJS1AuHKM5V3IRDQhaC
Output for 5.5.35
$2y$12$gmM84sFuF29hsqkASoKXgeTgUl.XUD2OKy4Sm0nopWAd48ETxK9aC
Output for 5.5.34
$2y$12$QkXDXznFgWBn9KfoCFIWqOg.TXddJfxt4JJdfHtw1cHVw1hD5lBUW
Output for 5.5.33
$2y$12$RsU7y6QHu7.9zwpkHJFBE.jjaJ7vJ9N8Ja/VS7901MK7TFKUIeUES
Output for 5.5.32
$2y$12$Lgh/p381kYbDgXh9E2hrKu7XZcTMdyo6H85mPoDCtB.eCjnkxdaBW
Output for 5.5.31
$2y$12$UwAgPoYxsdLe1yW3ZIIPtegvU20xwfDjTcEhGvKo4ro7MWIK3Ezy.
Output for 5.5.30
$2y$12$Wnzsq/rr8R4Ipjcy5g9R2e9Kx6DVLQtL54JSmILkihTh7kN1vhzOu
Output for 5.5.29
$2y$12$tVI1Zoo7vgnS42XolLrFsO.vfJTei40zEgBcYT2afqlw1CZk7Zt7C
Output for 5.5.28
$2y$12$FIVvUb885x2iovGSzHa30eNRKu5FDvX/dIHksNXPIVXiIyY8mOn4a
Output for 5.5.27
$2y$12$riTIr22wAH8p/5nwXVJaUeJ8GgUXGkLaNAeEKwKjcSLorI1vnV15m
Output for 5.5.26
$2y$12$3hDgdRg8j8bsyrb25FhPzeRbx6pSa1nszv3VbiI.KhogHDXv6cMPO
Output for 5.5.25
$2y$12$Yx4Hb9cl51NTnlwo5BL6/uQ5SW/NvxqUcRsA5ITbhHrh2VcpDW6ee
Output for 5.5.24
$2y$12$LKwZgVrLhH/sp7hnLOODS.DpLCtGg9/42VEp55ND5Ttg92aPfNOW2
Output for 5.4.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/NNn4d on line 9
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/NNn4d on line 6
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/NNn4d on line 6
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/NNn4d on line 6
Process exited with code 255.