3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $salt = strtr(base64_encode(random_bytes(16)), '+', '.'); echo crypt('thisisatest','$2y$07$'.$salt);
based on ce3H3
Output for 7.2.0
$2y$07$8fiIQysqcFdfru4vtRQ6F.damKPmv0G6VDvEv6T21WKalOFMGOpNa
Output for 7.1.10
$2y$07$VOKPY0PW1wav271G2Q2jt..FAL2BLYqHpyFMNmN2SqieLeAnehF7.
Output for 7.1.7
$2y$07$qmBsLDXSVkQKwyU0W8AtsOm3sWLpfmrZZidP29Wo6e7HUmR1kpTgW
Output for 7.1.6
$2y$07$CUYJFeSFViTjSfUu4SL2QeI/7CvlI0Ugm0kHOIyViqZFs7cHBmVBa
Output for 7.1.5
$2y$07$MHof8s4iZNDf0tD5bYAdXujRvStgkwKcKRVk1pGJsR.ceDak5QMxG
Output for 7.1.0
$2y$07$xPQsnVj0vaOl8M1PW6Zy2eM7JMekIrTSOsPbtUF/Y3uOFz6OOPJ7i
Output for 7.0.20
$2y$07$M7wf3wDQmJCaic1L9Nc5xOsRe6c1jz0Jx0s0uXLLd7hqpABDq1Xm6
Output for 7.0.6
$2y$07$zPYwbtjq7wuADP5dHrXSwebRL4cQaTPa0umUjBjKjxsN03qfzHH3.
Output for 7.0.5
$2y$07$QOAGfvGvEQ4AvfWE94a/NujiVSbFn19Se6b0isT.6nllUf.3lmQES
Output for 7.0.4
$2y$07$ojf26xec3omNpE5a.wtWNO4yiLOKxZge0hHnhv.whVGZyCEJAoTOm
Output for 7.0.3
$2y$07$2SI2jKlnwH07BH.QA.p.ue3FIO22qeRIHdV.Mj1biMWLdzME8Ime6
Output for 7.0.2
$2y$07$Clu8Pur1H7kA3I93crlJJesuajF7dkoB6Cm4g2xfb1YvqzNkD34Hu
Output for 7.0.1
$2y$07$keYa7sWdYI0FQ.UYfhbv3.eIXoBVAunuROSU4.HGgEHeryIJJBp9.
Output for 7.0.0
$2y$07$DCPr1du2JUtKnOuvDActwOExSNq9foJLFOMTcIk7NAjBOKhYqtzwq
Output for 5.3.19 - 5.6.28
Fatal error: Call to undefined function random_bytes() in /in/PqUgj on line 2
Process exited with code 255.