3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function pass_crypt($password, $unique_salt) { return crypt($password, '$2a$10$'.$unique_salt); } function pass_salt() { return substr(sha1(mt_rand()),0,22); } function pass_encrypt($hash, $password) { $full_salt = substr($hash, 0, 29); $new_hash = crypt($password, $full_salt); // returns true or false return ($hash === $new_hash); } echo pass_crypt('e1d0b743ce230a5d3bfffa678848ecc8e79ad09d', pass_salt());
Output for 7.1.0
$2a$10$1ebefd5d83a4ce8ff9c79uajv5SFebm2xAXiGwtoh6Fgm/gATGdDe
Output for 7.0.14
$2a$10$a893036a7351c9421d10ceGB6AGjQl/8peXOvyPtyMZlCKscDJRZW
Output for 7.0.6
$2a$10$9a7abbaaa88d685ba7921OHnLM.6Txcbi59GAzk9rD2OWkjocBVmK
Output for 7.0.5
$2a$10$be940a6313316310c0486u1eXPyaaQ.VNnhPIQtdalUmX.hqtdv6e
Output for 7.0.4
$2a$10$cb5cf33b208657f0d8744e29rxIxkHLOzb2bh//l6BIrVGGAKUPeO
Output for 7.0.3
$2a$10$30b0d27a5a3f6e578f26eOtJkl1xRurNocz9MelHQWm2/A8POwEuW
Output for 7.0.2
$2a$10$b6bf0b447aa3f57780400urP.ox2PYNm7s/8vJUGsAOXKkyJuW/.m
Output for 7.0.1
$2a$10$f5a641289cb900b3e89b6OgdOHLfyXROjowMvQU5d5scfcCH/Hf8a
Output for 7.0.0
$2a$10$c43b7974c07c7adad3087uMEVkp7Yn0UudGQ6FEmHQ6P1hEA5bCFi
Output for 5.6.28
$2a$10$b1db2a8fdbcc4640a1c68OpOgKTLw/Qkf.b4gUhslgquSCsTvBbaK
Output for 5.6.21
$2a$10$de4bb5d703fbd56a7e670udYU7bihs8FZKq3gsn8b9Z/MnKWiwHpy
Output for 5.6.20
$2a$10$746f32b229d0309d4fbe4OlD2klSze3624Pe/NXgfVWQMdrOGaDZq
Output for 5.6.19
$2a$10$c882b84f408957b656e7eOmQOoocQQiUKKoP96gcMHtgvUUHE/vYa
Output for 5.6.18
$2a$10$6226b1164257e837a324buqXYmWzFXgB6/scZWrwd3no4Xi0Q2MkC
Output for 5.6.17
$2a$10$21dbc0657dd361969c3e3uzvC6QuQyX6azX2U139EE/VQY.7t.6HW
Output for 5.6.16
$2a$10$4d6b70e973a31e53adecdu7dCHz3kr/5MmVdUd.QBFj5Wvv.zlIVq
Output for 5.6.15
$2a$10$2018d3ad2c2a40cb449ddOjUBulPBJAUnryyWF1IWi8K/x20huNRG
Output for 5.6.14
$2a$10$2e9e689b8cd54929035f9ePlo7ncCFX9T.iQ8ZOWyl6ST93U1SaZ.
Output for 5.6.13
$2a$10$a858c484537db1dc21e3aeMO4EYhEZuZrqHBDsWNtD5sswo0kDete
Output for 5.6.12
$2a$10$a7e166ee988e5b7f43a24OFsOVnuzxpE8mcvzdrPGscePotOpQtzq
Output for 5.6.11
$2a$10$69dd5fab396d357605020up.laIqqeQX0QbAkffvJMEzhqm30alBq
Output for 5.6.10
$2a$10$caaf72d5f21c13f6dd877O0ZS/414pyGPOLrfICo0NOa8w5dxal/G
Output for 5.6.9
$2a$10$38655f3193a12a25f2b8auvLBAhpjPjlwA4oTFH9PVTp6wj5cD8Z6
Output for 5.6.8
$2a$10$abb62ca7c020d179f9024OuGf/UPSLx.eDuj9TLV2G/snlk83e4Sa
Output for 5.5.35
$2a$10$dec7d07ae151e868051ccuji33HHb8SR9xYkbAUOkxJVVaEDymbSG
Output for 5.5.34
$2a$10$08d564bba8a7921e8ab26ugPWmtxIZDnv.hzZf5Npf5qNSwlI/dDy
Output for 5.5.33
$2a$10$f65a52ae9d14513f72594OS0dG0E.gQ1iGOhdlxAwHpkuRJffS4N6
Output for 5.5.32
$2a$10$7d334ac3fa6d8bddc423buFUDAnDctBJseDuQoTioKLpja/B4uThS
Output for 5.5.31
$2a$10$2328ded394d8053704e04u1W5mzZvi69tC4iTaGVFLbQEHdrqv6Je
Output for 5.5.30
$2a$10$1187223ced387118b1f01u8ANj9M52zq0HtgMkzaEVIS2sow3t6/G
Output for 5.5.29
$2a$10$47fc66e23d74be0709762eyGA0OIz1o4GdW3I6gPdnSZHgw9AAaXe
Output for 5.5.28
$2a$10$477ddb045ee2b5035739eubyDMMGHmqtmZQzX6FbdP3LRdrbU4Mpq
Output for 5.5.27
$2a$10$632e7f6236e030f0e4cbeudCNhgXX6ZZwENNO2Aj2HrgWtcYeFzT6
Output for 5.5.26
$2a$10$9d61754d03347f6c8bf9buGZKnE3penzEYFvYu4YZgyWFu9OPOjBu
Output for 5.5.25
$2a$10$d4b90dfed4710b149c25dubQZrtUcu1BpOqJQZ.NunkFakT7hPOMO
Output for 5.5.24
$2a$10$440689e79ab24cf9f268euRsCAX2glEn7MDAyI9.nqryXUDO7NSqC
Output for 5.4.45
$2a$10$57935290487e5d88ee44beOq2PrY1Lq1I2Qc9LnkNWi2cv4wdPn36
Output for 5.4.44
$2a$10$91e2c0fe38f0bd29e02a4ebiZwj2jGMMQhJV4LjekffkDgV3RI6kO
Output for 5.4.43
$2a$10$327c0b0a6a87ab8ae6d06OimE1TtmM4JWJPJ0sXLmUOXP6GYprI5K
Output for 5.4.42
$2a$10$12aabe02ffdca44940a6fuxrmcOeUvVnn2SgpcPrELGkGmtsQPBki
Output for 5.4.41
$2a$10$a7d7517796af39d69a4aeuxLXx/H/seoZ7Frxz9qMCDa14yL7zpby
Output for 5.4.40
$2a$10$34cdafbfae0ecb1306ba6uPFAcHfV.oH0rNjkPKegfUHS79riK7oG
Output for 5.4.39
$2a$10$8ae586fecdff52293e8e2u2YW0bZ7Y00iMWd5H78J9rSLdR4afvja
Output for 5.4.38
$2a$10$f0cb7a36501c64f26b79auu/kwjEzGmK21GZJ0OyHhNJtVPZeZI6C
Output for 5.4.37
$2a$10$3837a42acd3c16df15885Opb4GXr1g.I2xWQliCBfGXqFtSKhxsgm
Output for 5.4.36
$2a$10$94104a4e9112d6d2a4271ugtOag2mc4ed/jFnXs6edCMx/gojPcoy
Output for 5.4.35
$2a$10$1a7f6f19c914c9f6c5b54OBJiU./8IBoOMQqiVU5qIeZZipnDo/0W
Output for 5.4.34
$2a$10$6068df280b4008c045c3buX5zBPdC5w4xwrOqCZYOzmFpmQXVgghq
Output for 5.4.32
$2a$10$9593fbcf307a8b732f71fe/80iJSEMrBt33LBc8ouDfZMJaRnEoBK
Output for 5.4.31
$2a$10$70ec28aa258b81f8f19a6uOAm/Yx8fpnx7iKoUIAIHXrufOuw2CQm
Output for 5.4.30
$2a$10$c8948c1d52622803a5b1cuXD/KixarylRV4nuC7ERGePZjBN/MszG
Output for 5.4.29
$2a$10$fcc10bc02bdacd1763f4duaBHdeKhgW/w2OxFLt2/7p9kBAVhRNim
Output for 5.4.28
$2a$10$c97cebdfa0028d37eb720OgTF4/yK4nmPTRKlIy0jAzzldn1dl2aa
Output for 5.4.27
$2a$10$b9b7b292d95c2d785c517Op4vhDvIkfgF6p7m.Cne7BBoJAX1Jgdi
Output for 5.4.26
$2a$10$159dba006914eb86990afe4r15GJ9CFhGY/UTpL1lFHoCGtG1.tfi
Output for 5.4.25
$2a$10$52fee6303bc638f5b12f5Oq6aI3.5SNaWVeu.x1QQC0.GsA7jnVvy
Output for 5.4.24
$2a$10$c2ec4ebb4f2179776a90ee/OUOAQGUIbtH2ShZmaoqLtXO3GhmkpW
Output for 5.4.23
$2a$10$81b9d8fd0aced6b655870O9FNNKG5oFBXrgQNuXnniFt2PJRG3lCG
Output for 5.4.22
$2a$10$3706e3ddbdfb879f82b5eexbwUU99oTWBH8MR81KIrsdP.cz85Z2a
Output for 5.4.21
$2a$10$103f8c331bfe898c2ce1bOAzf.Gj4hEDUhk2huvb0AEQhMAJon60y
Output for 5.4.20
$2a$10$771a3c33903891e98d346O1/lzZlXCW9TXkAj.82579dtIdFuo3yi
Output for 5.4.19
$2a$10$d182de44e4fe5b723ba42ue04hybwwio9lBKqx3IQzOJBimFO0lpq
Output for 5.4.18
$2a$10$fd6478c64e7a78a962ee8OavvpA1CsGgUuyiiBFCvvD4Dug9SbfPC
Output for 5.4.17
$2a$10$032050c44ec3cc1c3b5caOkVSWLrUyGOLgeoqKyrBLbCq.YhP.jiO
Output for 5.4.16
$2a$10$1a103ce89d3e6c9925aa1uWl1n9NDiVxJ2IL2UIXeuJgvb/9gAuLe
Output for 5.4.15
$2a$10$b48938b813aadf4780769um1BfFkiVxRyc2u8xRXF5m92KPIWp9uS
Output for 5.4.14
$2a$10$5b72d1b388be4d2f9ac52ulmKLYFFwG00xhweacbZLB7NITBje312
Output for 5.4.13
$2a$10$5f7dcf55f3464da00ca99us9PPwZXdOhnxS5JlH0J7CTNlZoKcFHC
Output for 5.4.12
$2a$10$f9da9ecb8993a45b71712O4GilIjqhzROzwvFqVyMvaCSiTfCmTK2
Output for 5.4.11
$2a$10$d7e6032aa5a5e6f1df9c2OqNTdCgeuHi4P.pOYaO5x0KXMzyROIhK
Output for 5.4.10
$2a$10$4afb6aed82fa27162b403eROmORkiSxJAhvZ3RKh0qrK28JFB.g1O
Output for 5.4.9
$2a$10$b3470ebca53c2c80b4be8ufGZFGKVeUWFjI8qppOLKxh2G0QblmhG
Output for 5.4.8
$2a$10$a97c83a9ae3a122eeeb70uhdoK1UhNyBdP.Z.U5UWrKG.MLhLFrRy
Output for 5.4.7
$2a$10$c88a59ae11fbc8dada163uV5cU4ZwQFmF.nRq/xGp/PQlheCblY.O
Output for 5.4.6
$2a$10$d71e69ae6473e1f2ff457OZp2JnhTQgxYYSkG7jQsDTRl4JyGLh6W
Output for 5.4.5
$2a$10$39f2fc4959db217adf41buK8hTr0cwh/C91E62NJumaJr/CF1eokm
Output for 5.4.4
$2a$10$5ce3be00f0f660471a539OVmzRCXwSYhY24FGRaWgJ1DJBLDhJ5/G
Output for 5.4.3
$2a$10$428151498ac949eccd5d2Ov6nfaAz79jmNOShb/TnY2JUm8dxxf2.
Output for 5.4.2
$2a$10$912fc690b3496e18b188duPimp6SzmLi8nDyajTUVUDzLHtIcE922
Output for 5.4.1
$2a$10$e640de1d53c754b2588abOLAeBrvEqdYmg0Ey0/rEkyBUxPuagwF6
Output for 5.4.0
$2a$10$4eda015b4346352cd3e45Ol3qulR6A9xPFGtdgJSHmP7tgu.dzFzS
Output for 5.3.29
$2a$10$0fc838b32bb4e9211c463OPnHZ5ngaDgjlqlTedhyg56dOGNoW7/m
Output for 5.3.28
$2a$10$44717cda9385ec7c6d6acuS/BhLjGCLxoTS6ZdMBXgrr6wggjIfmO
Output for 5.3.27
$2a$10$52e70b622846c2e531bbdOgLYFLUC/Lo95zpS3YN8LNskq/V4.ptG
Output for 5.3.26
$2a$10$9d7ba0c8d3a9f450dd56fuh6raRW/V2KllWHDTV4/mMvQaeu5bICm
Output for 5.3.25
$2a$10$7bbe179c9af669d1b72d6uysS8A9nNJ2ErgjCqD2BxJYjY7BJag.e
Output for 5.3.24
$2a$10$2f861202a832dbf7e2e84uBd6OnAFpZYo9JB37f68xMKEYkyVru1u
Output for 5.3.23
$2a$10$ed5f958840ed0d730ea02OgLkxGOiN8X2Zt6UeVAr/t83NHzZhGJ.
Output for 5.3.22
$2a$10$7a6bb61d38c2dd94d78caOj48jkMUtPtDw1tYco7kmt1BI4afAFI6
Output for 5.3.21
$2a$10$6c78dca2de0a736260ccbuuw0KLQyFjSenhDF4oMW5Gb/6kSXtqzG
Output for 5.3.20
$2a$10$c31b83e61414d31e88fb2ec4VO/N8mCX9QK1VefVpFaMHMlNHoZEe
Output for 5.3.19
$2a$10$979ad47cfc0d4601b4699u0tq9gdKpULu/ESFB6a2bFTYj9nVHZmi
Output for 5.3.18
$2a$10$4026f14639bae2ef31329OURn8ciW0ZhZBwKE57DI4V.mP0TDB7JC
Output for 5.3.17
$2a$10$c550bd2d122881fe8a1c6uzt0HEnHY1CWfC2BSZxBgz8y1i4zEruG
Output for 5.3.16
$2a$10$6b38d9f7a26b568188f98u3JpK.M1pyDk5N8LyTB66RUgREVrY/Be
Output for 5.3.15
$2a$10$8b7c2393072d27d839663O4WLzx3xhhAKJIlaAkT5WfQ2wqCzCZbe
Output for 5.3.14
$2a$10$8a1bfce7f08de66dbb148uyThz6IEmL11WUrAZD3ydUuCK6WZhvL2
Output for 5.3.13
$2a$10$205737c89b3826ce3714auQQDwpb2oUYN88XW8TkaaU7BQalDbwNy
Output for 5.3.12
$2a$10$d2a5080cf648adaca3ec2OPC4frFNxXlqHqhRPrPx09nzANt2V8H6
Output for 5.3.11
$2a$10$1034cac9c9f709079c302OfstIuQRJ02bSpI6DZuRUjCZAhMOizEG
Output for 5.3.10
$2a$10$165edcf6ec9d6466439d4uno1aEaPIEIF/gVJm/gzu8uhMVGzLnRe
Output for 5.3.9
$2a$10$446148f91ae8f4d34cdbbOEBLiw1TFutg9gv3BYRVJYIvscf6gdvy
Output for 5.3.8
$2a$10$0d9a194e4b9011246c0bbuRq5Kvu12RexFtuX7yLr4CB8/mHLBhqq
Output for 5.3.7
$2a$10$e4cb141a651cd2e0e0d52e0NTL9i1g7rE36Q3q9/sz2twENcJYipK
Output for 5.3.6
$2a$10$4fa1f6ca527a68fa02869upMjSDm7cz8.fAwftgOWF.5YU24an./S
Output for 5.3.5
$2a$10$997e495449465bf350a62u7Es0rqZY8ccNa9M1Xcda9Z.iDfohHLC
Output for 5.3.4
$2a$10$3476182ffd1cdbf8cc171uUqnKdv176F4zd3KHJK9SmcWolpEIYsO
Output for 5.3.3
$2a$10$e405ccef0be79a63fa7a3OgvciEKI0ifGbhQmBC.eZdc466lf4RDi
Output for 5.3.2
$2a$10$f69935f8a49ce6c1eff15usb3P8JH0164ccQkiUK3Qr21xbldT3y2
Output for 5.3.1
$2a$10$a96a5ef2bc8f6e5429f95eta7BmSl0iabMQFvGH0.pnsVYlYHiEjW
Output for 5.3.0
$2a$10$26f10354f13e894daed1auLr1Aoup63I8.CbOdEMhfScJRAVvZ4EK
Output for 4.3.0 - 5.2.17

Process exited with code 139.