3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(password_hash('foo', PASSWORD_BCRYPT, ['cost' => 5])); var_dump(password_hash('foo', PASSWORD_BCRYPT, ['cost' => 10]));
Output for 7.3.1
string(60) "$2y$05$2ZpCowYfIZ4szHEc3rQkeeTJ9zx50EXP76jQF9RsNARFA0dN7MlO2" string(60) "$2y$10$XYSszMVpJ81YlkZmo6JFK.TO8JVjVRXDxuWJSh1JYDzjJntWf7Cuy"
Output for 7.3.0
string(60) "$2y$05$i93pn1Ccbfb6QW.F.mqzZOd0Lzn6bMNSBmc2O1iSGU2CcmKfaYH/O" string(60) "$2y$10$bb0oCRDio8RxOOPuHvq9SuAlfMI.23Pww8M88Kfa63m1uykIE2qnm"
Output for 7.2.13
string(60) "$2y$05$2/eqe3twwKVECFf4caq3o.8yvJbnVw6uWvTfAu2RpFIt08hrCHCxO" string(60) "$2y$10$WDcOmPTEZfBR6FX7A03.xOPYNqONmXtV0NaqbwOx2mMfpLHbbvUny"
Output for 7.2.12
string(60) "$2y$05$7MJSiRj0ZOjbBod.HIAEtuzOCINPsJbQz9FYE3hiPIrXrSj7pYuTS" string(60) "$2y$10$bL6n.DQDf1NCNBfAT1VXEeDGAg3FfeCSHNN7FP/C9MJ8Sm6rtejA6"
Output for 7.2.11
string(60) "$2y$05$q.t3LVPxith4g0fGLiyshOo0bsJFAr0v1T.7HQoWtFKxn6taMjb4O" string(60) "$2y$10$7VhsK0ZS3KhHGoPnzw2UEeihTaBGVA.0ROIL7AbMqCw.V/oNEVHAO"
Output for 7.2.10
string(60) "$2y$05$NAVtl0ZNDTTsDMtd24tVDOrSfcEd9Zxbeeg/DBoOfs4AcHBMT4qum" string(60) "$2y$10$.mFcZ.rjtx/ad3Ln68ooVOwXrICw51X0RKxXzXrByqtGjgXPBjxIm"
Output for 7.2.9
string(60) "$2y$05$jayWlzUCW5PSY4Uh4GgdhOLVfCkatxDYekblTCGEemLteDP2hAJNW" string(60) "$2y$10$E9PZF/fvDCzCpvZZPt0R1.HZBzswNdsAtqKlm0PNMGwEgRQvc60Ry"
Output for 7.2.8
string(60) "$2y$05$n/dEIzb7w5Kmub/T1RbBlOyYFZtMjtW2gaC80omlSIOrmOzrooEva" string(60) "$2y$10$sotl9dUlSrFIUWjJDfNvE.nbKJFhjAAmvGt.y06ryR7jz.gls10j."
Output for 7.2.7
string(60) "$2y$05$LCGwI7i2Flv4.1GkAWB3muSaxOk/IXASwBT.hkBizHofDZxgKo6nK" string(60) "$2y$10$SGFfr8A1SfY8A9pB8x7.Me7ROm7O1HbN9LTDSrBEg9LJEHgOrgrzq"
Output for 7.2.6
string(60) "$2y$05$LuSQcggTk7UUPQsNPYOaFuGRlDtBH7KnGS8cOD0xkdcxHKf72o8YS" string(60) "$2y$10$LaAMU9Aivmzd./lwU5kvPeFVCo43GkzAyd11/HMI7ozxENjBblqxe"
Output for 7.2.5
string(60) "$2y$05$uUdAhPS9gV3UYaS/7UMSMOOORTXxsLjv4/cV3i946ZWpgnrjx0QCy" string(60) "$2y$10$5IGNdm6INL/mCNFnSQ6Ffe6Dj7y.NiwkUU1T.JrlNCdEXjX4Dv95."
Output for 7.2.4
string(60) "$2y$05$MbnHfs0hg4KIvkGEjJuh9OfuNmnU/EdoqHQ8bERSBh7OYffiNuTpW" string(60) "$2y$10$L0cKmoD33V47yZhW9F1lLeow/MJrJWDEpXrR65Ay2gJxFOL.8tD/a"
Output for 7.2.3
string(60) "$2y$05$XfhIg9D68gj0Q6mUhlGe0u2DizyPxUoV5/5mnPIaIr0c1Q4ZGWY3K" string(60) "$2y$10$XLHIqrYBkaSmeipi27PGg.weKSooxWUUZp.Ht/tP4Yx.bnXYeLBi."
Output for 7.2.2
string(60) "$2y$05$DsZt.dgj5KyhxKkriULbae.cQNFVNkLNBGiLJK4cfVHBGX.20sOdy" string(60) "$2y$10$BGbWKsW9LgIB1Zy.9ODYQ.Yj3BuvC/rw9SvgL0o46H./Udpnl3qIm"
Output for 7.2.1
string(60) "$2y$05$eWBXUyZYG/AlB3mnY59QqODeximE0YDNh1OnG1nxNTiopir7FVVw6" string(60) "$2y$10$eKO7R0rPUdqTGU1uzisqYOSW6KRi9XiXeDHmJXJNYs6blXSp3yxnG"
Output for 7.2.0
string(60) "$2y$05$N8d9j4QWGgdt9tODBOuI2.nbZHLI2iwEtfbUE2vwRQE7Wrnx.4eK6" string(60) "$2y$10$mB4/I8i56WhlDfCPCa1bi.ol6cr3TukQ/FwiZ5atqAi0PIQr5LQO."
Output for 7.1.25
string(60) "$2y$05$FPSO8N1koa7rpqJN6Pq1DOcIw9aj81a63rgoHpGkEgDd/aUGAi80S" string(60) "$2y$10$T2NEv.vaMCvq/qWlRt10EOhd9JxNAF7jG9C/DsqQJX0cCNFxhnSom"
Output for 7.1.20
string(60) "$2y$05$XMku00odu71IgEzCH.aufuuK0C3WjDK5ZtVq/jwyJtq5M4GtO403C" string(60) "$2y$10$14E7ERrEn1Tep2nx2sMYW.p0SBYRvEZnQW2HF8ehbdZm27GjYyila"
Output for 7.1.10
string(60) "$2y$05$nuintns1wl6UyswXo5Z70OlCBymxVfgJjIH0CoE7IqldjDSEyzVLO" string(60) "$2y$10$VW/WEtXAmjokX3HzbCtQt.RY2Q/zZ62Ntw6ckpZds0Ply6ydWx7wG"
Output for 7.1.7
string(60) "$2y$05$C4OdcSPsl3la6Kv0Jl.q1.8vkrhPKcP/phaoxVqRn2BJNgmTlqgSS" string(60) "$2y$10$3rKnxJnalGOnFAuDpsPrCuhShL.IYRrDzPot2jbxj5IY3XCfgtvH."
Output for 7.1.6
string(60) "$2y$05$xFOrH07zmIFvm3cWwioM6OvSR6pRQGYaV2lGtQzXECK5ErapuN2/m" string(60) "$2y$10$nyf.myuK//blNtwESb2mFuOZd1RxCroXJCNsjA3wJ6ROeuNvKdKGq"
Output for 7.1.5
string(60) "$2y$05$lBYFLVDAkre1/SA0RLtDie84mZevMaiZTQ7r7t5QLLqoqDsVclq4q" string(60) "$2y$10$s7iKWrQ45kyyCUdzD.pXQu0QzovM6bT3b4BStMTGRa9pvpkrJJjlS"
Output for 7.1.0
string(60) "$2y$05$7nt5EtJm8ALY24Su0rablu1PG9/hsnRuk7Ao7BrrBMWE4Ac4Ob9dm" string(60) "$2y$10$YYUs..q/b6nbhPTpudAcsO/hMyXpm6DbrAeNAJuRIOwGlufueQbDK"
Output for 7.0.20
string(60) "$2y$05$.vJwbfkGxNvilRObdQYHO.ht7x2rGDpx51PWKDHqN4.iMyxsrPvMO" string(60) "$2y$10$UDLo/UtNZL2DOBuVtebpSec9vQJtKeGRS.RQacIllKvQI67AmYlgi"
Output for 7.0.6
string(60) "$2y$05$YlcJQvRYCVjD0AGSONcriOX5cG4lkhclMnvfdmXKAVKDy5YRLxhFy" string(60) "$2y$10$ofLjBKxacHjrRAlypOlQtu6xdZhBKsvbrRQh3A2v6cVxo0BrVfnh6"
Output for 7.0.5
string(60) "$2y$05$0BviIVo9.qNBsSGsQOg3l.FNmv941c20VYPFBhx9xhSL5/zTM7DZe" string(60) "$2y$10$pyVpkFpZDoHL3KbvFNb/uOJLIrAOT87bmxideJY0Y5CeqIawS9hXe"
Output for 7.0.4
string(60) "$2y$05$Qsvv2/iQlXBl9sx9Tjpbnu0s9fZFvLWUTw.ZHKBw6Hv9YnTgrP3Ni" string(60) "$2y$10$hGrHwdozU6Vj4rQd80bOGODdLJvVTTgTGhV2eoZT8W8LX5fHN6TXO"
Output for 7.0.3
string(60) "$2y$05$tjK8riRdWAMpARRfLH8Edep4E9CbooAyftpK6Z3mQd8ioNalx0sme" string(60) "$2y$10$5etsTvmQgt.YlGC/z9qcZOGEDOGY3DPFmoQSf4juZuVeK6Ym9P.7u"
Output for 7.0.2
string(60) "$2y$05$Gpiw3BjzcM0AX22mXCLHr.78Nkhl2.FMc0YXSSoKGLOGMfZmbF13K" string(60) "$2y$10$C3QebH8xNi6Ja3gfsHdz/eGvzRSFJ7invXYtI2RdAoTXUBMjyc/Fi"
Output for 7.0.1
string(60) "$2y$05$.7FIqvH8GxMzmB9HusyofenKSL7ILQ.aQAFwXSQnjwxnHzLkYAiNC" string(60) "$2y$10$5SaML8bjqi/qgTLeKUaFROOoywd7gus0HeU4oq9oQLNBIlspE23EO"
Output for 7.0.0
string(60) "$2y$05$nbcSInK9rXUopyn/NH8FlOU/TvRlgJuZZKFbYDOojFWqieFwAx54S" string(60) "$2y$10$dIh8f2Hd/OrTKnCxXZu1NOcgkbVQW2Si584EzMOc59ZNAjdZXIAjG"
Output for 5.6.28
string(60) "$2y$05$/zYs3u46re4uBA3xrsOJZuN707zln2efdR.FgJA5/ZiGNisj5M8BW" string(60) "$2y$10$sbRZUHzmh3Z825BKKftqE.SOj/9CE72OOTV0TEsheae/U0.cPlT/G"
Output for 5.6.21
string(60) "$2y$05$fSwWxqC9B2aiHtPes1LrmuN237Gunn9Za99PjzPyqhn2n8k3puh/y" string(60) "$2y$10$Hz9671Y8ia4XVVXbKBdGber7Gy.s8U/tdlxy.mCYCH.g4ND0xHunu"
Output for 5.6.20
string(60) "$2y$05$bb8a/9tKA9Sm3iPWZQU7o.bPJXm9w32vGTZy7QoDki35qJeUjhAi6" string(60) "$2y$10$2y.nQL4Oi8lqN71oSgEyR.bDJxiFQKyLIZ2MmbjZdNVcmRjD9asD."
Output for 5.6.19
string(60) "$2y$05$ZM7ThSv2rTROKq57771YNOokWkfxH.bDBi.sd0aJZ9mlbGold8g5O" string(60) "$2y$10$oyzrkhSR.p0EjSSJP6GkEOQRY18ZnGLvWOaIuSG3OfM5zroAK5mby"
Output for 5.6.18
string(60) "$2y$05$jx58rAGZbpRKEmzpfeGZKu3zW91pN5EX/7oBDle7W3iYWHvB9.XCq" string(60) "$2y$10$koDz52hIoI8dqXou8tkjIO2tnd5ZQ.KOmPp0qOTJLiO2yrCvUYFYy"
Output for 5.6.17
string(60) "$2y$05$3/e75wHhMKrnwlpnNDQr.uuAgCs4We4ptcS6PCc0fxVs0UUZpY2lW" string(60) "$2y$10$Dr9vLDHo8t5ENXj2YhvudOZguXcAk53Gl96/8jChyX24cLMIuT9Jy"
Output for 5.6.16
string(60) "$2y$05$O9DoK6R7lnRc7vpYG90z6OBzKVJFt6bNeEUlux0Jnu9hVeEm7a5sG" string(60) "$2y$10$YouyUUJHwroYSqz2YYOew.mbi006sJBs0BIkdp7a70JZk9ypx2XBC"
Output for 5.6.15
string(60) "$2y$05$7KEb8gEyJJAbu9l11SUwC.eEPZBHoxrsGZKbWDxJFIQ3xm3Ds6YdS" string(60) "$2y$10$NJEt2ibL7AtQEjEzTx3s2uCd3F.neVh8Z.B6q2m/xgfj7UFkufR7S"
Output for 5.6.14
string(60) "$2y$05$krrczxenJqj3Sc5/U5cDkOMSqTtCAylz4V18C2zx4/iGwp0Mo2W/y" string(60) "$2y$10$ioEvbQkHk5GC1fgVa9VyqO.wdU7iMTuH7r8ZbwEGpJglTqrTVtQ4m"
Output for 5.6.13
string(60) "$2y$05$rp9kby0u7F5udOJHDJ6yWOqQR6dILSj4.17coTLDsqPeGuttsAnU6" string(60) "$2y$10$n3DdU8hnEcObl/WCSGX.QeitQhoAX1FMo53Oog9Zl2QSB/CM4jbt2"
Output for 5.6.12
string(60) "$2y$05$FSckmigFHoQPVJTn/A/M8e8SoAePCaDdbRLCLFCThdkr8eqqDhi72" string(60) "$2y$10$HxrO70frs6eb06RP8H3DgOH4BaDI5jWlUrpjVXMdizkMe4jDyRFne"
Output for 5.6.11
string(60) "$2y$05$30iEQM8.MI7gsDHpjjK3guqb89heMiFb3OR6BoqQZqPcWGTinuQ7K" string(60) "$2y$10$a6lDcrPFE9cEAkTYvYo7becZCeE/bOkkp1adlgGvVLUECnTl4i89C"
Output for 5.6.10
string(60) "$2y$05$6d/HBBfyyUmeWLvKNR4e6.CLnUFNkORy1LYe5BN1G6X8ewwpslqeu" string(60) "$2y$10$Uei2wUOVrbUlC8tJVm6vDOluKz9qMc82n/P7k/IG8fj2HfyJlKHH."
Output for 5.6.9
string(60) "$2y$05$5oh/IZQvCzfIsFY552BFv.H.LQzfe5YXW06EgLUde6lIBBcU8Ngwy" string(60) "$2y$10$sW8JaR5GLlUdIVmNG6JKDObeFD2dRJygt9tnhnt.CtOBA1JYqft36"
Output for 5.6.8
string(60) "$2y$05$06gRp42AZxHmoPjXI9wYdOdS1zNr8K5jLz4BtGJSnYXG1/iE.oAfu" string(60) "$2y$10$pHWOyxuRGspuExubWj392.imXnacsfwjDzqd0WZw16IiW7buFhUWi"
Output for 5.5.35
string(60) "$2y$05$h3lJu1/xDRT5ogj.4TpoWOpEnAbTQGQldXUMAIILL2JOBsjZSW.zi" string(60) "$2y$10$rI.wlFOiLPcO1HGLgJPF.uXmOXI7RqfoyuArsDcpbRxdAHNaZpKZG"
Output for 5.5.34
string(60) "$2y$05$1TgXNh5tmxzFw.si2etOp.ZKSNvPc13CwW246M0QV4qEtd4qFpaTq" string(60) "$2y$10$H5cIFZMaajkKYdxFpCCN0elxiFaUlHlqgWhnGoakPArqq5a8fRhiu"
Output for 5.5.33
string(60) "$2y$05$3Pd8LfuUqa4l02AI3z8aWeRXuaqCn859xikdFPjX0VzzW.bKI4fDm" string(60) "$2y$10$6iIz5rJOEeWVPjsKX6vXGem7B6pVKl65qRWoQnbUF/fl9nZwDFwz."
Output for 5.5.32
string(60) "$2y$05$j7QP/eUftnFWEeIDGkOOTekTsILVgtpokZHf2uA2HqTu31X/oSZZG" string(60) "$2y$10$yc5ZC3XXd8rNed7aNH60OedU3fHDa.DaXuVjhegkIomg4LeUfHjH."
Output for 5.5.31
string(60) "$2y$05$FQtPpQBj2D.daSZwuY3GrOijDd41XwQq9mUDzD5j0qNUlQZZSkNrC" string(60) "$2y$10$SUmFJHhEQKqt6JZlEQ1VF.r.eiZ5RpUcj58z4bPNyj7s2/TljJZ7a"
Output for 5.5.30
string(60) "$2y$05$KJPO4KZxl99.kO0Mo/uQJ.8GOpWw/SzoFe7w33YhDeJVh5ZPupm1K" string(60) "$2y$10$LVidgqed.KZ0u6fMdZxT4eVIor8XINgwz1R47dc.E/Ge98ov/D4Lu"
Output for 5.5.29
string(60) "$2y$05$33s4KQfGlGUbe3.fEkfbNu.HeBtWIAdNMi2klOhMhFKenMBYtgdvy" string(60) "$2y$10$imfgEIA8OoCF5ALgsNhVbOJV2zp2HbF11NvUZgW7kV35xVzqJ1Avi"
Output for 5.5.28
string(60) "$2y$05$RHZEZkjWGXC7NhAWUs2tqelfR2PO5cGGn3CiCG8bUaeu/6WpZr846" string(60) "$2y$10$l8m11bJ8L.wLWmEsVE66TuDaV9cCjMxFUFLwxCy2gl7mjE/A2BhsO"
Output for 5.5.27
string(60) "$2y$05$XYRyj6lXukR.M3RFlkO0C.a4cpMPo5tXVEt0tZRu1hSGAIKNXb/tO" string(60) "$2y$10$5Y7Qhepn13Laxd3o2xe8cu6mcgskrmmNFO8/oL5CCt3nv8j.E92rO"
Output for 5.5.26
string(60) "$2y$05$9YmqlTzSxZCvB3YrR7wEMuYCyFLs5qhml/r..Y10C9u6kQ3PEMFaW" string(60) "$2y$10$ulU1KS7GUSqw50Ko/N7DFeWoAivdO5HfK/hUctjix7tCarVYYEZhO"
Output for 5.5.25
string(60) "$2y$05$UXAU5hMGn9Q6eZ1fmaE38.g5ynfwRmbAdb0Ge4ZyqDsTJqlTjvaNG" string(60) "$2y$10$BDGZmP7hH6yLxo/OoLp63.SIBfyxRCmR.0JBmg45NV.rLNXK5zA2W"
Output for 5.5.24
string(60) "$2y$05$7akIMe4Xm2iw8/tU.hrZP.rYhrExS4VzI769lvpKk4EgdU6oADBSa" string(60) "$2y$10$xaTt7vIggdgtCoCWbsPTpubCFlviU6THKA7xGFEea3THdeRQmzIxe"
Output for 5.4.2 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/2v61R on line 3
Process exited with code 255.
Output for 5.3.17 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/2v61R on line 3
Process exited with code 255.