3v4l.org

run code in 200+ 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' => 15, ]; echo password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options)."\n"; ?>
based on ioDOE
Output for 7.2.0
$2y$15$5yaPabaVtmmxjkn5lg63OOoaITJsAZnX0/O304iAzeB.4wQtWr7fu
Output for 7.1.10

Process exited with code 137.
Output for 7.1.7
$2y$15$9.udv5yaXIcNvspRwqsiHuGkYoXR2XT62AOIfD6Gzt3nZnGPzmkEm
Output for 7.1.6
$2y$15$uQfSrQy9qf7MpWOoyqUg5OvB7wI5PkYei45pPlcTCRJnxz2i40Lia
Output for 7.1.5
$2y$15$qNECsaILMhkoloneqq/QHO/7o405S5ydxsPUsPyGrtuJT5JNQm3dy
Output for 7.1.0
$2y$15$84Kq.HcvAq0IaiOxW80fsuCh36OhuifC9fhUwilM92kud9h0UADRm
Output for 7.0.20
$2y$15$udosaZX/4TMasD9TrouyK.IuZRFFnsNSXh2Rnd1wfwRu7FZk4vX4u
Output for 7.0.6
$2y$15$t9.YGOQKqWB2aiyLfXDzs.E1wCO4VGtaq9Q12786O68TZa2DkKFPS
Output for 7.0.5
$2y$15$TJjd3P4olgWqx5Fue08pueiEfRr7DTBEl0cTm6bl4d8P4N9yDiuOK
Output for 7.0.4
$2y$15$cto.sEUwspFBMk31nRXeluWJ1tJOBJzPRoSxNcSV1IAAgBLVN8Hae
Output for 7.0.3
$2y$15$7ye.nR1KqEkRVQsUIeupO.Dlj.6Qx14i3W4tVs6lN2jpnFnf0VewW
Output for 7.0.2
$2y$15$A8ZLgn2/NMj4L.apCvbQ6.QwzcTKDpP.WLq8pzwztVhIOwKskO90.
Output for 7.0.1
$2y$15$89liUvsICstQwjLIaoflLeZ/Q4baq8XDXGCqWeembQAhx//1R9Tnq
Output for 7.0.0
$2y$15$f9/iUuIF840PkskWacHXb.I6e/ltcl0KaLY2lpmDcFL2JfwvSSdpu
Output for 5.6.28
$2y$15$qcJ2e.3X64VS870929wJAOSEGXVYbEkbjWc5PhBJcjvj969C2oBFq
Output for 5.6.21
$2y$15$WNCyTo9VI/p672yrgUS2Te5U1Cv94m8EQv4OcYz8mPhShG/knfXY6
Output for 5.6.20
$2y$15$C7dSt8hKtSzauBC.Fnw8T.ivWUQEfdMfo7K7x2GVex6zuSfsnHDFK
Output for 5.6.19
$2y$15$elwXw47Ae9yXGUHRBpPTAOXUFUhX65UFrU1dh9slr.AXKMJt.jT7y
Output for 5.6.18
$2y$15$5KV8ATrD54fT8jVf5n4kge/4Yz6XvjYZEjMK/ydplL8Y8DugsdhQ6
Output for 5.6.17
$2y$15$LLJN4KzbrFgWp2LIbzB7QeCucoZqoc.n4jC2c5AHTZ02.x/KeCcrK
Output for 5.6.16
$2y$15$WaBBtKHwGkzsCIadGxBbC.DwRZ0mAKowUvrPrqyCPub4pucz/ODX2
Output for 5.6.15
$2y$15$OY3IfZOVSER2adxHSCJPQOuroEpb33Ywm0eixIZ4kVMmPr3IKAMMi
Output for 5.6.14
$2y$15$BcT1D6Kg/glKj8VQpYGLF.hyx9K3ZNX5EruzYK.yHrQJx3G1eEEmW
Output for 5.6.13
$2y$15$oPfLkQ8nwa.TWaYcnQZRuu8aqiBwzotKlWMJY98uGGuy2ZMqfZYEu
Output for 5.6.12
$2y$15$guloe18v.QICBEkK2VglK.4sa.71a/p1XjmwkqspDTZSXkHIkTxi2
Output for 5.6.11
$2y$15$8eIyLe1JO4RKvXBWqwri/eMYlbii8pGbPusXM6hXYFQeSFfAni2d.
Output for 5.6.10
$2y$15$CgtNa7ofNY7I3o96JUs4GeO2a0v2fwOSuHtI3/FVANv9MC0o7P0fi
Output for 5.6.9
$2y$15$VzKfE2asHMK34H/IH4uXT.lhgNvhx2/W2qM3IFCsiwwTmgN/j7Asm
Output for 5.6.8
$2y$15$.yxVum4cY/oGG/MR/3p.aeETF5LM7KAvozUuHEqjcdd0W2EzKM8OG
Output for 5.6.7
$2y$15$YPpb/L.QxWCNYcPdptL9HujpU6zUyhqGI5lABZVzBEr8JC2f5eWdS
Output for 5.5.35
$2y$15$96peQ0qCBv8H0iB5Mciveu4nhhU.LTvAY6FZvtw8pac4jWccOJf96
Output for 5.5.34
$2y$15$jYGdWjrnhNkHGN4mUs64SOT6qnmDOrYDaRI57IsVrS9yAqXVsvtqm
Output for 5.5.33
$2y$15$dU0sUTlOyzn/BF5D4htJ4OgTn9e4vO6U/pSBkYaYf9bqHIW1Tz622
Output for 5.5.32
$2y$15$Tyz8Uaa/qSoeGZ.3eynitu6DESSZJS4/TA3/gFUTqObONFnRTXgBq
Output for 5.5.31
$2y$15$GwA5PKIoet8f9LP1SYGHw.HN8gxFji1/vVWxZMUNRgcwBeumqM0Au
Output for 5.5.30
$2y$15$UZ/fA/y4VWEDVIw33/fEuOC3ViEq8.RtHyDlbnohCDtXoleXNZCJa
Output for 5.5.29
$2y$15$s.xgqttH3SsoaZeMiMXrzeBZhjdsU79mdN24O2pJKwdSV9e5c5GH.
Output for 5.5.28
$2y$15$Re/y/p/dxYXqAXIdBX71FeCztJJXDKMKKy8dz54DmVrO/Al8lo072
Output for 5.5.27
$2y$15$6uSnfv5tyfSmkiDlHtemGeeOdFbMHsCsn5tjHH5SOvCwm5iT.mvMi
Output for 5.5.26
$2y$15$Tuq9QWOflPPkvN/zjW94tOFE39F/xGSBik8vGTB.dB6/QAeHMuwQO
Output for 5.5.25
$2y$15$wBfgc0WnhyQps/v9/U6oeesLjUxdLOywsR3rSpRrt5nsyFnbD4DYS
Output for 5.5.24
$2y$15$QcjL.8fwqZfzyx8hfKmOFeB.MSzpfMTJ0dqDFa6dnOxCGAY0cvwk6
Output for 5.4.2 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/NfPN6 on line 9
Process exited with code 255.
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/NfPN6 on line 6
Process exited with code 255.