3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(crypt('pass', '$2a$10$N9qo8uLOickgx2ZMRZoMyeIjZAgcfl7p92ldGxad68LJZdL17lhWy')); var_dump(password_hash('password', PASSWORD_BCRYPT));
based on ptts8
Output for 7.2.0
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$6lo6pzt8RiIrGUMoB/7Wz.7b/K6iZi/ddCTfLKS3ZImfySc5uPQL6"
Output for 7.1.10
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$s2euP35cY.JYVvo1GMfdke.ve95Xp35nbclTvfRBBxBnHDBRk131W"
Output for 7.1.7
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$PSs3JyYHmHRMYV6sANeoxOUFUq9Cdpfvj7sawdsCNS9l/f89ZWhWK"
Output for 7.1.6
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$zP95JKsy96JRpEEZBdyLIOi69XwR2jM3161Z6rTmOby4PUJt4L/IG"
Output for 7.1.5
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$wtwi0zT4edZH9.yRIdNzqO7z8X0kuBkCao14s5k7WstW6USHiAPiK"
Output for 7.1.0
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$7pKkWlKHhl6GSCiMKxV6r.YdOZU3tBTOjUAoSB71bUEGQQaRuttam"
Output for 7.0.20
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$YB0vfgCjIMyZl9lupAvzL.GMvoVrkIgNXQ7/BfRIwwVCSkz/eGsre"
Output for 7.0.6
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$NUqpNnystsUNBV92vRfUG.jf4CzYrzv9iS6iS8mVeWqfP7geNB5ri"
Output for 7.0.5
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$50TcPAABbOn6NwNO.hL7Z.fVBQMdu98qeLT56.dAgorBEEedMkcdK"
Output for 7.0.4
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$U5scoX6vwFUsgB9eGQNIk.I1vgI54pAT9uDpNWPsZ9fYuvs1TUwmS"
Output for 7.0.3
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$uW1jb7/KPH8Y1qs4sQXe1uQj/vzKv46PnjKJ0dVg5HMmhJLnnAVz2"
Output for 7.0.2
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$CEzLd6vUeFbPUMCqjJGI8.LWkPhR3RwEX2ux24mH6S8pSCBd3f6Kq"
Output for 7.0.1
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$466fSCKCFwlQOgTpymisD.TV4DbRFCnWW0K/U7HT4TVgekmVgBRzO"
Output for 7.0.0
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$g6Ms2q6SQu312eGJZyDrAOM4LoXpUv7wxWCEnbX1BNguU4GfZJ0He"
Output for 5.6.21
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$6bsbbZGIO80CH0DBTq8PWe6yVNN1j65p8TiS77wsk8cLtdb8Ts3au"
Output for 5.6.20
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$X56ypicv/ZG1JJXJowdRJO0vUW9.WLesW6Fg2VcUSErEa3/WOea4q"
Output for 5.6.19
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$38hcUt5.qlKd/O5BxXNYpOwMSulSCscsFxZo5wzJ9cnKZL56hsjDy"
Output for 5.6.18
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$0QaUaMzJpknlV1gkjAJbZulb36kXjGDskm2PX2F9kbJVja1GVUwN6"
Output for 5.6.17
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$MH15DO3hWCTJ32n4nKeb7ulFQeyjsemNIAFetObeTWJqHJ3/eR9A2"
Output for 5.6.16
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$GEuT/2Y4zrf8ZBWRl4ZwMutYwcTIc0iidAnyxodFcEWUjCVpA2n4u"
Output for 5.6.15
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$y5.rPqjHjTEGiILa6n9mXe2djKD0rAqGDtrQ/swOx8hbmbmCmW496"
Output for 5.6.14
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$UfUlfgF0g24yTi0wdWcuBOWkyVl7rFSQO/574NHscuWtAcj6KtJcC"
Output for 5.6.13
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$hk0..x3HTIh3oR5g.uHC6erecBvzI.8IgvFkQJyQveVDahoGlBo42"
Output for 5.6.12
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$uqJEZ5dKBdPrY/3s2zVELOJINoa1wLA5JQEh8C91uqgAsgQzVZ/Ta"
Output for 5.6.11
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$Xv8hz6YvxwkyTKEUnQg7X.WeLe/jq6DhxaHjyIttCz0G6u.XMvWiq"
Output for 5.6.10
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$KKkeMYUHTxykYmmfDtVXUO2/V.KbiKUSOoLZJSBTDF7SLp4X1ozoy"
Output for 5.6.9
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$i8Hp3XMVVcDBAmfUZIwT7OpnJZx0zFtQ/P6noM5.n/FRxkFO0mqZW"
Output for 5.6.8
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$JZz5YoCJSeAIiyqnEy40X.8xs1p5ZpBZwwxfYDyPKtEMjm3SIqhnS"
Output for 5.6.7
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$YHrpmSc1MjgWBm8tbvYGMOe.laHrUOahB.igUEMsCwlzUn5Q8pFIO"
Output for 5.5.35
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$EFF7t3bEITmBa8iIPjV2L.rnZGmH/SsRzC/s4ILmcD.yTopj736ye"
Output for 5.5.34
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$bEq0bsNfxniy8MiqZZz3PuyP2mOL830EYeMk...2/.S9n3jNPf4BS"
Output for 5.5.33
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$NRnRC/pLRlTr4WiBVfaC7.gD2tzKb.2Bu/RdewmwgS2pc8kXflRge"
Output for 5.5.32
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$xigzDXrerkgFvt8d4nKjoOq9RYnqHabgTGXfaa09FKAvEmCOuh0Ai"
Output for 5.5.31
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$xy0x793ZricCMa5Spo.Joej85YuqRPNMm8oxaL/eIp7yl0CLaRH/."
Output for 5.5.30
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$yBDVjXZDBVPFk8PfYNESEO9mayPZffqhdKzFcbiZGmlscnT3wf4OC"
Output for 5.5.29
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$hK4rerw6uGK/d3vcJCBC6.Eb/drr3K/LPJl5Q4fjTMVwwhVqGPMx."
Output for 5.5.28
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$47M2M1I6IkZBgdehRT.bpOLquzL.jp020asazYAVU2DAGMixVXjQi"
Output for 5.5.27
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$lZt6CaDE9BujxDUZ0FSoHe4twxU2xxkPrtwyYM9YakUt1r5WjJ0Di"
Output for 5.5.26
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$JQw0xGKJ.RB5zMZek90U0.ZAlT/6VCRoxwHjry5wWm3cyx0mOVtcW"
Output for 5.5.25
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$fPUDg.6QG9CV8YPfjA3DNeqCkLeOj4dcafWJ7o1KE1y8F.9C3F/aK"
Output for 5.5.24
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" string(60) "$2y$10$rQTxfCSN6xCi/AwU5N2R7ez85R8k0fgUn0RYV.lB7anftwDXl1y.e"
Output for 5.3.18 - 5.4.45
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" Fatal error: Call to undefined function password_hash() in /in/TO5CM on line 5
Process exited with code 255.