3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $password = "test"; echo "$password \n"; $hashToStoreInDb = password_hash($password, PASSWORD_DEFAULT); echo " $hashToStoreInDb \n"; $isPasswordCorrect = password_verify($password, $hashToStoreInDb); echo "$isPasswordCorrect \n"; $password = "test33"; $hash_crypt = crypt($password, $hashToStoreInDb); echo " $hash_crypt \n"; ?>
Output for 7.1.0
test $2y$10$FgmwAkyRPZLdPxgZhWjzEODDzLwar5jn01a4R24oyqVgHtS4X4C2u 1 $2y$10$FgmwAkyRPZLdPxgZhWjzEOQ09tfOncGkeEeucnw8a4g4OhtQ4T2Te
Output for 7.0.14
test $2y$10$0j6mnf.dxRtpJJjqCsNU7.7DJu2Xcc6ut2F6WX8yXlY2NyunyEcNu 1 $2y$10$0j6mnf.dxRtpJJjqCsNU7.Qoe8.Xaqe9rH9KNWChvbXDIozr8cZia
Output for 7.0.6
test $2y$10$cGTHGY5/jV9.YV9NM3wS9ul69NOaKmlUeqzICXhGSdKxL7rU85wUK 1 $2y$10$cGTHGY5/jV9.YV9NM3wS9ubUbfxXMJz6NVYP4Q4YiU1Pbh66bzCT6
Output for 7.0.5
test $2y$10$bmYbcdGx/cz4XHtRx.iJve7292TJLg5aZDxcYaahdWHOOPw7tmgxa 1 $2y$10$bmYbcdGx/cz4XHtRx.iJve0KvqGPi/9ThaYztR8cI//gW5vGqakre
Output for 7.0.4
test $2y$10$DZ5ZfEPRRdMR4kaBUjBor.eBjVY7hPfaKRPQ0zYtZK5lVU1L3N7j2 1 $2y$10$DZ5ZfEPRRdMR4kaBUjBor.yZfFfoVvWuQpOuO.YLf5fz/ev8G7Hie
Output for 7.0.3
test $2y$10$n22M0xYxYC9BSnQDcS2P/eWjavyfNTKmxNbm0a7FnkA/tadKfB.mK 1 $2y$10$n22M0xYxYC9BSnQDcS2P/eEpaKzmi3UjRbdKmMFkM20vUwB2igImK
Output for 7.0.2
test $2y$10$8IeW29YWIDOt5QS1IyETF.hxVzXW92E2vUIuCN02Ruo2lBtks0OmS 1 $2y$10$8IeW29YWIDOt5QS1IyETF.261eAbdcxM5cO43zs61.B6KyYCv7/xy
Output for 7.0.1
test $2y$10$9/v5R6Sy9rAnuG8ygOr.7etFR1lLcnqARcz0bT4LVdcnNYPTEyO/C 1 $2y$10$9/v5R6Sy9rAnuG8ygOr.7eiaSDFvcaG2HkgGQSbllYQAmu.8X7l5m
Output for 7.0.0
test $2y$10$UBIbBiGX9TDTBrv15ECiU.GFFxef8APMNb/w3/yYOJC2TqZ5wK2wC 1 $2y$10$UBIbBiGX9TDTBrv15ECiU.n/KoLJaZa.Ew7qEO/JtyR9YVN61IWY6
Output for hhvm-3.12.0
test $2y$10$333FOgyNG1Sl17klx.v9AeVxeJZCG5/p8N4uzmPp/mps4nin6dKCG 1 $2y$10$333FOgyNG1Sl17klx.v9Ae6A6al6IyaSdwMIIxuSAEqZm5zyRBVGa
Output for hhvm-3.10.0
test $2y$10$NY7IUetqRsZ5ylN8BNbLP.Tt69oFw4mG./Vj0wTIWFZ58C.Chyp/a 1 $2y$10$NY7IUetqRsZ5ylN8BNbLP.hhVPpssfV9BytFavohsZ4ijHGjOnYKu
Output for 5.6.28
test $2y$10$tY0UqAkVchSHSiajK603LOjGMYlFsLfqwtNNAzxOttD32E9Ulc99K 1 $2y$10$tY0UqAkVchSHSiajK603LOIVR9d3hY8ZlSdof8YJ2XhsZlWzFd6Bm
Output for 5.6.21
test $2y$10$78rQZ3rC.jt1MJBKX82SFe/2mdt1zGTeSDQ7Ap4iP/xTltD05TCD6 1 $2y$10$78rQZ3rC.jt1MJBKX82SFeO3FHY0XC8jOVdaYiC7SxJJEzR.Wv.B6
Output for 5.6.20
test $2y$10$YPesTL2anP5LejS1sMGyvOCNOUl0wsPGBg7TL3O1g5xcCOssgtNse 1 $2y$10$YPesTL2anP5LejS1sMGyvOBW3l948pO8T9lh4ZW/IHAUG0PqLw.dW
Output for 5.6.19
test $2y$10$q2s87iqFHACwMv7H/4IFWeXEb5ggCuK51OeYGA1RMbokOv7PsXYdW 1 $2y$10$q2s87iqFHACwMv7H/4IFWetE2MyLimWS/MGZjGPa7yTRshzi1i7rq
Output for 5.6.18
test $2y$10$KF08qAa7HLF2eJQlVJrgx.S6wpz.9pydJ.cKUL3oBXeDpMB5CnzoS 1 $2y$10$KF08qAa7HLF2eJQlVJrgx.QWkLcp66ux143Uv5FvJ4tU/o4Pdxesa
Output for 5.6.17
test $2y$10$Of55JL78MDqf9bzgas8ZUeJAKxxgq1QlTW9rC5ZSmgyF301d0ABiu 1 $2y$10$Of55JL78MDqf9bzgas8ZUeR83NZGq50tkIq1bM/ZPM9OqAUtCV7E6
Output for 5.6.16
test $2y$10$uWavEYBC2lBOr7fOqxJJBeRG.3Hd5fYlBV21DwqbB4OHEVnangura 1 $2y$10$uWavEYBC2lBOr7fOqxJJBe9qQHYxIKvp6w7rlnlOKZMpJ2DyrR/RO
Output for 5.6.15
test $2y$10$xIfN0KC6KUavfiBU6HdakeFSWg5ET2UxVmbSEmgvxeK61R4z3geWq 1 $2y$10$xIfN0KC6KUavfiBU6Hdake5HMdJjtZYscNM9nOSDk3ISQMadZ2nNK
Output for 5.6.14
test $2y$10$VIVkTESjuFbMqwfV3XJ1huHf1BAxSNmQKleGN3smOskeYOWYUyIUm 1 $2y$10$VIVkTESjuFbMqwfV3XJ1huN7l1SFYsg5TVqGIgznoUwL6ALJd2XCu
Output for 5.6.13
test $2y$10$qiarV.r2nDRdLY06jmAQd.jwlQJ4jvNWI9zWOcfXhRgT/Z.mM3aKK 1 $2y$10$qiarV.r2nDRdLY06jmAQd.RFbeYMEY8sT8Q3.pOcWUptVeARsq9hi
Output for 5.6.12
test $2y$10$s872hPfK3InbfwPvrEwIruYqZgLHOpBcYkSeZYP1Bdw4fWd6.e5KG 1 $2y$10$s872hPfK3InbfwPvrEwIruVeJU2q8MFoslnMRojW2UFU9GKtX74T2
Output for 5.6.11
test $2y$10$3g2FOZI6ZpGxsuq3TAGOOeyNDDyjLtB0fVMtdaQMVzafx6m9mPX7C 1 $2y$10$3g2FOZI6ZpGxsuq3TAGOOe3wfpFfuNq42SN6izACtRMbhRIuay916
Output for 5.6.10
test $2y$10$n/Gfnvv2W5ZGszNoJKSkYeNEZt0AqXFHHSUXaa0doaXu50gdznLqy 1 $2y$10$n/Gfnvv2W5ZGszNoJKSkYen5yuHJrs8JjzDZJc9feLdVRala4QojO
Output for 5.6.9
test $2y$10$7aOpOb.ExOPRRGG3/eq2QeR4jeJvaxWMM7aESyk/pnZa3sbUmCoU6 1 $2y$10$7aOpOb.ExOPRRGG3/eq2Qen4XsMwHYBtPxxi7uBxX5O08.ShxPgRW
Output for 5.6.8
test $2y$10$RSQD3QvbF2uzW8/k7SQPbOXMayfwPbPlpAHacQMUtFL3zbN2RjgDS 1 $2y$10$RSQD3QvbF2uzW8/k7SQPbO0dtKJRzCH4c8kvnwo2RVHt9ahtTlYPW
Output for 5.5.35
test $2y$10$1VljrukxF/gYujKWiRPdReAhvXXvFPN7CRp.yNf8i7nGsj0atnSgu 1 $2y$10$1VljrukxF/gYujKWiRPdReEEC1AvAuc9WbYpQ1/PxN775a8xHFOPe
Output for 5.5.34
test $2y$10$kHYyN4AT8c6YwSpGRBo.he3OwI5sHX0ZWDRVRVuLa7NdbN4uiOPzG 1 $2y$10$kHYyN4AT8c6YwSpGRBo.hem3WTfrKBlmY/YqkY6dKqk3QIZxPQn5G
Output for 5.5.33
test $2y$10$/eUW3dAl0cHCmOC.ZE8ku.IE8Q.RJmaxORGOQr6GuJshlEla8jz2W 1 $2y$10$/eUW3dAl0cHCmOC.ZE8ku.1t89lh782GEhDDEyOMpRHM6fPDeiYJq
Output for 5.5.32
test $2y$10$qRblB8mistEx1w/C7fA9ueRTLdv4627/nzNtQZxx9oUwGjAeS2zyu 1 $2y$10$qRblB8mistEx1w/C7fA9ue93lI3ZdYj3gcol3moJOVBaOEIQYxzkq
Output for 5.5.31
test $2y$10$vvB17/oa1IVaVxY75nqJFOZH5OrI3n4.59oPis2Roi4leDYSxIBSa 1 $2y$10$vvB17/oa1IVaVxY75nqJFObwv6Iyg1erEiFBTP3VwgNvtltMHlQz2
Output for 5.5.30
test $2y$10$oASAyA6gCY6mF3rP2yo8I.rdt6.eICCHNMeVL348a1KO5tMvSgqK2 1 $2y$10$oASAyA6gCY6mF3rP2yo8I.VNN30IHhe8BT7jnm27rlUXt2z4w5d0O
Output for 5.5.29
test $2y$10$12E8RLJwlADQXsUEEX..vOE1p86.dZ7UlHRdIQ6awilxxnCRo9q.m 1 $2y$10$12E8RLJwlADQXsUEEX..vOOtzTN2WNCpl0uGdBAiAyZin5z730z/6
Output for 5.5.28
test $2y$10$GOcglzj4EJcy6b/bTetpbeQ3XMrSCYrzwN3OFe/wBhBfgTR3XycOy 1 $2y$10$GOcglzj4EJcy6b/bTetpbeZfve8VGuJIyVfDxooMAtS9nW8K/svZO
Output for 5.5.27
test $2y$10$ang.JeqaX/7iljbolcLiTe4F4mFhiwplzAsYLDjWEk4zSa9ooJtJ. 1 $2y$10$ang.JeqaX/7iljbolcLiTeEhSEH9oC5w/0RY4CqGaTMJVZzVu3j.2
Output for 5.5.26
test $2y$10$017Ormk6eNsU.AqwKVoT..cuaqf6aSPkB4bVMEOTJfkjvrdIgL9OS 1 $2y$10$017Ormk6eNsU.AqwKVoT..OS5Mk9BJKoKrgZJkvsY9zDJfqOTep1.
Output for 5.5.25
test $2y$10$kZ8BMJGFcgDHkFEZlr74teoGzb3zYJedRJtRyAB7yA/n9wsdk8Syq 1 $2y$10$kZ8BMJGFcgDHkFEZlr74texY5UJmybxryaXh4EXgcj.EBh2rwWWT2
Output for 5.5.24
test $2y$10$XMKMjaZGAsxrWrvni6V2puYFiYUEx1KmsYMDgo7jprURZyEU4rvYa 1 $2y$10$XMKMjaZGAsxrWrvni6V2pu1ScGl78KQXXiiYsNE3UPdEXB.TrBex2
Output for 5.0.0 - 5.4.45
test Fatal error: Call to undefined function password_hash() in /in/bDu2m on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
test Fatal error: Call to undefined function: password_hash() in /in/bDu2m on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
test Fatal error: Call to undefined function: password_hash() in /in/bDu2m on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
test Fatal error: Call to undefined function: password_hash() in /in/bDu2m on line 5