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('98fb325a58d3f4988e6b0262e4a603e126a3a041', pass_salt());
Output for 7.1.0
$2a$10$dccfc1c700c0235748f81uF1u0iTyPwnM66Mr9vykTkqTVc41JXnW
Output for 7.0.14
$2a$10$7f3d21cf7cf531b67c2e0u49s6uKMzV64T35qW137R/1gxnpxLUjq
Output for 7.0.6
$2a$10$c95f45e9cdfe7ca28927ae/Z1hbYSHCZLOZqOSWws8uCI5LJurcKS
Output for 7.0.5
$2a$10$b944ee6be437413f03430ODYg2hQZ6nvc22MGD8RxjBnb2bDkHTl.
Output for 7.0.4
$2a$10$a788445feafb0303e4b5dur/nfND7ZlBzGr/QdRB/X6OY9JZCsft2
Output for 7.0.3
$2a$10$4adb5bf2a037e5ac81488uZ0pJK5AJpHr4clvbzdIPSVgGyD.s.46
Output for 7.0.2
$2a$10$21ca1dd74f18fddd74a51OSNUVrLAnExMnSYMEpymlmMKI87Z9GCm
Output for 7.0.1
$2a$10$781d5417699a6b5d02880eGGIFz47q64oeffgUGh0/roSpyU/H56O
Output for 7.0.0
$2a$10$23a50b8a7e137667196b1uBBNV8N878F7ng9pbR951jHUySgeXnwG
Output for hhvm-3.12.0
$2a$10$0079edb68e040bba761e6uTZv3wlXEug77EKJD8VvhVUTcAwt2y2G
Output for hhvm-3.10.0
$2a$10$92d7ecb7de75765a07d34O68EpKrIWCOXTKaDoaPRwqcSPITuAwe.
Output for 5.6.28
$2a$10$3b566987e298deae4d644OnKAQaImXT7C7COyb68C32ErxT7bjOmq
Output for 5.6.21
$2a$10$cf9352352ddb88c27733euPxCOanmPNorxQacF.D2tr3smZo5/qky
Output for 5.6.20
$2a$10$88f47867cd9b95774f093ukNmvZVC1NWvxqgYKfDMTV/iYHzlJ/Km
Output for 5.6.19
$2a$10$0b6ad50341e73d193f21buGj99B/s.DP6FK0RjVLtJ6q7TEZwfdpu
Output for 5.6.18
$2a$10$62cea965d694ea1d79ffcOZ8MOpcL6NmdfXLbSXzkU6IfbErISpfC
Output for 5.6.17
$2a$10$8af3b11bdd5af840c2e5aundCAhYBAlIdhmgh3CqneVobPnOAsrGe
Output for 5.6.16
$2a$10$7264fcea70115751c00d5uv.vUpyBUOisL.IsUvO/1TBy/x21Bh92
Output for 5.6.15
$2a$10$9c739fa63ca937002e147uIBtpJVJrn2F9n8FUC5ENiY0PTgPnGni
Output for 5.6.14
$2a$10$81dba7eed5e9fe6c3a788eGvEi7M.Lyupp4ydH3kyauU6LaLwLqvK
Output for 5.6.13
$2a$10$9108f0624175b917418eeuz0NLZwbHwYh.BqMylwUZ5LyhbzACV9m
Output for 5.6.12
$2a$10$a87d73b2fefd128e42ad0u.rp0wKdYRhYurLlh3.UfhfHiTTbz3/S
Output for 5.6.11
$2a$10$c321617122de97d3fc69aeAonzgscYH39DGSRkaOB3AOSfb.9vKmy
Output for 5.6.10
$2a$10$5dc84c810cd1ff24a4636OdX7c7SpUfWbDXljplNwbs8ibVVo71u.
Output for 5.6.9
$2a$10$a3c7b700d1103e6c24a5euDwNAhx6RAtjhduEg6XttpHCE71lKTJC
Output for 5.6.8
$2a$10$1043dab1b00da05504bb8OW0iT0rqJc8v4RxqFcvNlMPxtFXrlX3O
Output for 5.5.35
$2a$10$65d6bf390dd7d8175d874uOseM2ut42hIZ13827ilEWsaHqWJFvDu
Output for 5.5.34
$2a$10$60157bbd61a6d27df8cc6uIZA3Ag3pIvMKWIHLPWHjjdQBoIp0Wiu
Output for 5.5.33
$2a$10$3533a562c31eb00e3dca7eCg2jiWxVNPUYmYTBDhEzJGonmxIUXU2
Output for 5.5.32
$2a$10$b97c04d99aaeedf5bc997uLPLhHHQGfrSlVIowhjpxJiNw2Krr5M.
Output for 5.5.31
$2a$10$1b786ae20b3ac107e123cu5vnDRvF1QazdHO0pl4Yk92jiTs/dciy
Output for 5.5.30
$2a$10$e165ee72a547fde42b232uw3AOdIelwFecAv60cJyn51Pe0PLcDeK
Output for 5.5.29
$2a$10$617de2ad37106fb40a21cundUFvx/3ZTpBDTprskEpuLgsTRDT8Cm
Output for 5.5.28
$2a$10$4521a1242c34eeb5a18c1O/mahn6gi6ejPryASNga04qAT3RcKy3K
Output for 5.5.27
$2a$10$4e19c2c523974b6061c6ausk7JV4ZzDVdpVZwkkvV0HxBi1lZCTKK
Output for 5.5.26
$2a$10$518666a1228cc6da52417u0oQpzFnsPN4/mZ0v1QQyOWhtkp02Jty
Output for 5.5.25
$2a$10$73a173afdf898700e2186uhPy45ndggnsebaEYS.POK7LN5w6C79y
Output for 5.5.24
$2a$10$af1e1d4307c05377e7a5auxiSKNIrC7As1AdEMAAw8AYUwDwl6vu2
Output for 5.4.45
$2a$10$e91b4ed5d283173239246OqXX9fULgaaWQ93uCrgTexldNp75ETjK
Output for 5.4.44
$2a$10$495cb7c89515732f34872uRjsZGOqLVKDuSeWY1CED1JFawYBBnBW
Output for 5.4.43
$2a$10$ad9f3579dd7575cd4b28buQev8Q2l/39z4p1pxtH/7UvRM969uVbu
Output for 5.4.42
$2a$10$9828f78f5ef59ea48967au3nnp9jxl2hSXPsOLfd/TgGkZUtp3gV2
Output for 5.4.41
$2a$10$846380d0796e2a3b1e190u6HDdZZcnPxZ.2wsCUQfjaRrBBB6AArK
Output for 5.4.40
$2a$10$35e67bbe82b1a7bf87904uTP7vUbLASYClpFmvmdIVF4cmMWGPVau
Output for 5.4.39
$2a$10$94b4728827851a826cad8ugsQUL4feW42V6WMWiUoRmtP1k5AIzye
Output for 5.4.38
$2a$10$5bd66e2ce6b8d01f07ca0uBuDQrrBERyDhckyTY1GhGI09b0XkxnS
Output for 5.4.37
$2a$10$f66dab0e54edf22179ff2uAKArB1kfrrEYVNzxMob0xeHdohJl77.
Output for 5.4.36
$2a$10$8fb995fa6820b2d807e52u.K/GiAWDfIeCJ3Vyba6FpNPp2erU4Lm
Output for 5.4.35
$2a$10$13cfae0d79443299883c6OACqzABwt61WkL..mwE8XUHSjYDP9HpS
Output for 5.4.34
$2a$10$5cb67b49968e3e8c85e4dud21UwTHciYhxw1ywk6UINerw4z0p/N.
Output for 5.4.32
$2a$10$a662c333a9c81d41e61f0OK5fTin270mH4pKUXHZAv0XR.Y.M/yn6
Output for 5.4.31
$2a$10$10fb6da0b24ac7195d5deudb0yiHG7ZRSZvz.58W0bmWgdKkfOyAG
Output for 5.4.30
$2a$10$fcdb9f5cdd4e1519877a4uyfqUhIbkOZSaCYYqGilW4QsgImGJgN.
Output for 5.4.29
$2a$10$01bb761441412f668286auKtllpSIC4wSRK1.LvCvQUqjES1x.yWm
Output for 5.4.28
$2a$10$1e9e66aa9108a8d141a68OjkmA3MnSrolxWALrzR2SqF/lJJHpsMG
Output for 5.4.27
$2a$10$db5bbc0e9221dffb98383uSPFpjEP4oSCjWVF4BEHJyvpDxNhRjFu
Output for 5.4.26
$2a$10$bd546eb9118649e35f4cfO7AmysI7qeNOr5gul7atRUp4Lzy5mgLi
Output for 5.4.25
$2a$10$713d8c1bc430fd0072d4fugSwJiU3kkALqhMFacXzWm6JKkXqzQHi
Output for 5.4.24
$2a$10$82a8bba325fb9dea1d4c3OzGkYSn8fekWOGS0mLWWKUnyZiSJKoHK
Output for 5.4.23
$2a$10$a504b159382004c94bfbeurRtocQeiEJdb.uflAM3Yv7/LW0zhyUO
Output for 5.4.22
$2a$10$dde9e96964ebf3b79392duh82m2pyIZ..B93NNd0HmTJscgVSgQ/u
Output for 5.4.21
$2a$10$94fc26493e582221ea2b6eEin.FvbkATMozlP1Akj8Id5UIsYZBqG
Output for 5.4.20
$2a$10$9bfda465b8f950799a1a1eOlCtdF64IALJGduVUPpmsvXIpgN/wGW
Output for 5.4.19
$2a$10$65198cacf1b2f509ada42u.vJMXMRVxiEgFbYqBQKJr/EpWkmj3xy
Output for 5.4.18
$2a$10$4aa9e14d18dfbaa0c8fd1ef4BsQpsWBr0XVYYgtuCz/z8LzyvnjLG
Output for 5.4.17
$2a$10$791f31dcc65946562ceaeeLl/vWJhA2HbjJtJo59e8YnOUsX79VVy
Output for 5.4.16
$2a$10$52b9a4592e79e2ac7c341ubW0KWejhOeZGhpTnWHNl/J2U32FjNXS
Output for 5.4.15
$2a$10$1c96b197d3906cf22454cOtmoiZMZyN8VkpTUEdyG/I5vdUtmBq96
Output for 5.4.14
$2a$10$b013602b2158e8265dee3u5b9LLIbwdyGwh9KZZ8R9uy19Sa7NlTG
Output for 5.4.13
$2a$10$49a731f9c4a8f67a9a060uF3Wfy2GkVuqcvesBVAEqRo99I28434O
Output for 5.4.12
$2a$10$ed032fceaea60694bc6dauNYgZIdiyBlqQZMRjYwGGKqSnHqocdbu
Output for 5.4.11
$2a$10$9cf6783e01526feae2ebbuuDs0XKbMN9PKA9A6GdGgkIILoxeOgAC
Output for 5.4.10
$2a$10$e16be201207c05abb58f0uHhL0KVgUVzQHPPFWqqzshR6EktsfOpS
Output for 5.4.9
$2a$10$8696bf3f06cab565fb196uCJqWW7aqLTh/8COJ7zIw5vNM1SO19Fe
Output for 5.4.8
$2a$10$28ed3ea5dfe10a22df895OW/xFbYzphBwiczeDyCQFJ8hXQHZk/XO
Output for 5.4.7
$2a$10$47f3bde32f1b686c937f4Oc8tg9ieylN62dYexg/F9i2C2PeauszS
Output for 5.4.6
$2a$10$157886af8fb64568abb76uEZANjzGAJ6z14T6ghDLVazjGGUPFNzm
Output for 5.4.5
$2a$10$22a38a9c1c0a0875b40c9ejOs5LGVLojF28RGf/oXdYQtAmKJt2Y6
Output for 5.4.4
$2a$10$2bc2cb9e98657b7e883aee68HBDExDxBN0fyU1u7yYRGRdrJPiFBO
Output for 5.4.3
$2a$10$740535f51ca8ee5b6005dutNfuGJ959w1cMNPNJxMhsHQuBDPdowu
Output for 5.4.2
$2a$10$58eec8736e14f88a86bd9OQUeyfHJBOYe2TNpb78D6GGWZUknJaBO
Output for 5.4.1
$2a$10$e7fa7ef25e0004d026545O5fIQpFKEpCPL2Fv08V1ehYLHH6zH1h6
Output for 5.4.0
$2a$10$14fb257fb641d4cecbf05O82aOBfWbfuss7oPKJ5Re/HOtS5nkG2i
Output for 5.3.29
$2a$10$be891676acd3f965e3a06uI5YMqq9lUUMsBCa0X095/L2EiygyHDW
Output for 5.3.28
$2a$10$a6d6bfc171c2bdd68f3f0uMloV88WYYRbi6d6t6myKncC2RLsN75.
Output for 5.3.27
$2a$10$c3afdd5fb476472cedb9aOeoZ/2g3xF3tEUMa6DFi.tOltmRtSpGm
Output for 5.3.26
$2a$10$5a1bf4ceccce20564a1dfuM5WteDlQUGEzm8kwZgeU5vjYdYBLFwG
Output for 5.3.25
$2a$10$a2b8e9ad8a6a419859568OM6hNd3jplFcPO50lxIZYvxWR/tRF49.
Output for 5.3.24
$2a$10$2e780c45404c695ff5bc3ubUsT/T2Zb8VdEwSun8ps3syBSLhPylO
Output for 5.3.23
$2a$10$e9796e14e960a1c6009e4etm2XX3gLGVcH8yPrJpzmg6EtOYLBmJq
Output for 5.3.22
$2a$10$9a9d65bd8db3f211fdf17uPRZSzlgYc0TaV6t6dw4D.P2/gS81BmC
Output for 5.3.21
$2a$10$c75440250412c929bfb26O.AEmydG8G6/0mUVUrDQS31qQn4Vbowa
Output for 5.3.20
$2a$10$8287dffc5ad9219fbe252uV21jXeWIRQ3l6D8goRcdOx.4XwBSQIm
Output for 5.3.19
$2a$10$d073cbee6c8898c651a1bu6DJEaJjbAiH94fNPCekO.EbyHJeUVau
Output for 5.3.18
$2a$10$5e78899d7ae8d11211823uo0bBH.8oiQAWcEjcMxvXOATWEhz2sDS
Output for 5.3.17
$2a$10$9ad56d509db6c2aee4f9eOIfi2DqnhpHHanIz/M16hN50WdOVn5J.
Output for 5.3.16
$2a$10$cb0aab5d009c3a8708e7dedRApReUYgjo85Csq8aOo7hnuBJT.xce
Output for 5.3.15
$2a$10$945721dfdf0ad34c3f885eZjJGIM0eFMeP..7nfp75iLfzS1Rsu6m
Output for 5.3.14
$2a$10$bcf4e8c63d9afc8819e30uqOBUpA.CjwEig7NTrsP04ddm3J/oLvu
Output for 5.3.13
$2a$10$938db03220eee420b5fcaeScsxI6Mx5v7WGpEZ8Z4r3q0nxwbRe5i
Output for 5.3.12
$2a$10$b6b2dcd1972e26d636596OVcKWj4boVp8CQI.TesQbqRKoMdlbKM6
Output for 5.3.11
$2a$10$141116168c27c6fde65e5OVU6aWJcP4tk16eV5QL0CPNpPHKXDdIi
Output for 5.3.10
$2a$10$d61896f16a7ca21075624u5Ed45X4pWxZyTfmmL6/.zeEQ7Tkv1hm
Output for 5.3.9
$2a$10$d1e8a6ace32699c119d5bOJj4X081go8qxanC/CIA5Z2WriFxGjFa
Output for 5.3.8
$2a$10$eac52287f5dd2f6fd5e3cO3iA/DSGWXgXn5yXRCueU9b9MUmf26E6
Output for 5.3.7
$2a$10$d2c06d177ef1d8eb6b8f7OYA0dde4JBLAHZJHrar8yJeOk9Pcs/eK
Output for 5.3.6
$2a$10$762413cebefd143878cabuf6bR4w72oL9o31Xa0f3YrseKSZ/sPDi
Output for 5.3.5
$2a$10$abbb56eacc9f9beca51c6utWKhwZbfSkozc3otGFme.DYR.MinEte
Output for 5.3.4
$2a$10$87d40d55e1fa70c097828OmwpttCganghNANiTVrbQfznw.Ix7HNq
Output for 5.3.3
$2a$10$769adcc54616b9e752061uC80gFbbU3n4Q6g./oS0QRA7PJ6AFZcG
Output for 5.3.2
$2a$10$0eb0b170d1d0acf942624O0zIt/He8/8yVCUEMU7.TpQzktpBnofG
Output for 5.3.1
$2a$10$7ded38e02a098b2af6719uGT/u3SJzRrOck79QdNjuyBPnSDobQIS
Output for 5.3.0
$2a$10$954c34650e54183c0bb40OMtTOCKS051dcAPdLlhMOTSE6X1AOf9W
Output for 4.3.0 - 5.2.17

Process exited with code 139.