3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $cost = 10; $salt = strtr(base64_encode(mcrypt_create_iv(16, MCRYPT_DEV_URANDOM)), '+', '.'); $salt = sprintf("$2a$%02d$", $cost) . $salt; $hash = crypt("thuum", $salt); echo $hash;
Output for 7.0.6 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function mcrypt_create_iv() in /in/U3Nv7:2 Stack trace: #0 {main} thrown in /in/U3Nv7 on line 2
Process exited with code 255.
Output for 7.0.5
$2a$10$r8a8AVfL9MzdCzJ5KDYtheUbfbekVNmxFL/hvaYxzxgBfBW7XVKUe
Output for 7.0.4
$2a$10$dwRyPp1OJQ7qOSz9xELxdeKUolWk43bGIxEQ08DOcVk6Dj66dEO.2
Output for 7.0.3
$2a$10$J8pbN4Hbo0XmKmIOjMzZ7eDNdXe50LQT/f8rKk3iJzEAuqKqiv4l6
Output for 7.0.2
$2a$10$74.HIESWkpORsxE5/emzjO09ia3jBpV1OQZiNwG6TKTvKMcwSfGim
Output for 7.0.1
$2a$10$88yQHGSdQCwRU6H0lGackON4fYtVHD.KnsoI.9F3f205/8swUMWYq
Output for 7.0.0
$2a$10$ny099YWVHDD7MAq.rqKVKODg5j8YIMAMN03OcrHB/ntPVTQOkfmme
Output for hhvm-3.12.0
$2a$10$f4.w7CH7WtRhSYqbMeyJeuZ2bw94t0dpZ6CHn7tAKeIitOUp76Ey.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.4.34, 5.5.35, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_create_iv() in /in/U3Nv7 on line 2
Process exited with code 255.
Output for 5.6.20
$2a$10$FfFTNe/l4d1geQA1spxqXeyntigykfq4bykPL7Sx7FKxncYZoVQGy
Output for 5.6.19
$2a$10$GcG2aEmMDtVknQAs7GBw1Ohlkvyao64NNe5XMD58zzQWW3Gy5D5ee
Output for 5.6.18
$2a$10$HmfpGT2gmzJ0WZIs.zFzq.UqbB3MEyeEbYX4UsKu6C/XwoNEV1tc.
Output for 5.6.17
$2a$10$0njjIZT2.iWpiT/X7VoQCu9Mp1NHILreU9.05GDoBnKGf.wsXeypi
Output for 5.6.16
$2a$10$r24dZ2QMwLAIJ.egLVtklOYL7tZSTKrBSK/9uGSzOk9NgrVLi/Yvq
Output for 5.6.15
$2a$10$0pKyIScGrd25S2TWItMl8ehUhoetIQuUiqZbMFc9wL.suVb.CThiO
Output for 5.6.14
$2a$10$Hyc.BVT76nxtqdK1vfVYkehjPsgSbEfSvefYYVpnwiBEMosvUDKKe
Output for 5.6.13
$2a$10$/Af7swlWGp3itySTYvCZou8dNyYxK0oESMlrP4y0LscLoqVUvh9/G
Output for 5.6.12
$2a$10$UYaFVdbZe5XVp5sKul6dWOEdxRp3VrSMapQpsgzx3u7QWJRiSLd96
Output for 5.6.11
$2a$10$ZFcnpYCXGJbBkyAUpfUnz.pV1RT.iwLLGtUlHtXnfNUv9BXePimaK
Output for 5.6.10
$2a$10$d1yjCgjrxeys3cXodNdor.d9azhIM9RVZOrBx2gZfB42tUQAp2e3W
Output for 5.6.9
$2a$10$Km0mrERXBt3z9klRUsKl.u2r5sbhO59vp4JnWZY.Rel/MtGR5xoie
Output for 5.6.8
$2a$10$JPugWJN06lmVzbmOzP51seS6Q.x8GjfCJ3r2mH6iAOui2ftMF8lGu
Output for 5.5.34
$2a$10$evG60fhj1x09TQXXMxdW2.JpILm1sUOVlJlsXB3mclT2EHU4Joq8e
Output for 5.5.33
$2a$10$Mo9.kSwrAfE/P3i4L/3Re.68HgHy5zjAYwcfC46CM0R01kqV0ZT1e
Output for 5.5.32
$2a$10$DRnDJeoPxgbRF3V4dlspWOXvuO010QhLZxrnguvAc5n554EreLRwu
Output for 5.5.31
$2a$10$wzFIpbi5s9nuy7Z4/TQCX.GHl4CNHJAmWtEvMtyqKYlu8TJPGd916
Output for 5.5.30
$2a$10$RAlEKewTy/6uLrYo0A/h..zDe4z7Z91jJPsG9ILP6zXpwPLrCRmpa
Output for 5.5.29
$2a$10$MqSsFhnfsro/nu.VWQDlN.2Ka6wdA0h94apbZypImMpvozKgXiLES
Output for 5.5.28
$2a$10$ZBv7UA2c0MIB8ErEOXV9OO5u9BeoXjgobrIdNQXYEVg1iVp6n.zGO
Output for 5.5.27
$2a$10$DEf3AgvjdPT9sa/Uwnf4De6hb0Hk4uc83PtQRWZ3W3/zzKmDXznle
Output for 5.5.26
$2a$10$FVnZZDAPwRKkrwHKdAwXyu.iN0mshkJ6O6nQQHQYoVjM/gun0LDAq
Output for 5.5.25
$2a$10$QtyR.fL8Nb2tlWJRN1le4.Okb70w3Op/IVyjqG7j.F.dGyIvy20pG
Output for 5.5.24
$2a$10$Q6pDfZw3EqsbQ4UoIJ5K0OnCkNSBovq.T21HNV/B0VoflOyEg5zGC
Output for 5.4.45
$2a$10$snLhrGAnLO3IwEtI92l.D.jQAZxLEghdYqB/gVsj0D/l5H7J/pwGy
Output for 5.4.44
$2a$10$12YZ7KVEen5H2UntEWcKxucGgMxBvB.kbn1AKMAexsBDR4N.3VTBK
Output for 5.4.43
$2a$10$ARgE8kdZ3zlI5ga2oYYTJ.UbhrM4fwHceLcDTV7GefU/s1qN5XBVe
Output for 5.4.42
$2a$10$8X6cLtmpA1R9AoWO.yAQy.KA39F4PbL631PjjtpBAcnvv39GbSiQu
Output for 5.4.41
$2a$10$O2Ypa3S.7up9Lu76BqQGH.rJmqbW8SR6HScJ3vJOdXD2zwODbjwyy
Output for 5.4.40
$2a$10$iRPVsiA6v5KrPB0RgCugSOSobhRvKjm6zrAfKF80Z65isHYlqGheu
Output for 5.4.39
$2a$10$dR455RURv00vu0wW3expbOIO5PDs3Dc0uAAUkSUEWBboh2YUoTz/C
Output for 5.4.38
$2a$10$Gytcx.VdrNNi.6V4ithvHuJ9jlB1Kl8EB.K7dG.zVBVQH9X2g4Du6
Output for 5.4.37
$2a$10$FbEygTV6LDa7OOGHJm.Z4.dyIx3ZzcLd2/dDXp0GPrL803kDXiX4i
Output for 5.4.36
$2a$10$UUQoV1ij3Ug4fyPHHTAkf.H0Cx60JPsPL7USlxbqmbHTTRae/E.K6
Output for 5.4.35
$2a$10$58Qlo3l8287i5OwYjXCSEetkrt4EjavdaMS2pZtHJWGiJSVdwyw1G
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: mcrypt_create_iv() in /in/U3Nv7 on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: mcrypt_create_iv() in /in/U3Nv7 on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: mcrypt_create_iv() in /in/U3Nv7 on line 2