3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $password = 'teste'; $hash = password_hash($password, PASSWORD_DEFAULT); echo $hash . '<br />'; # $2y$10$PwbhVaqzuUSl5wSdi.iCK.RBz5pQp/a.6lRdSRttY8s2qs7dn5hTq $verified = password_verify($password, $hash); var_dump($verified);
Output for 7.1.0
$2y$10$JU/SRu1cX/21.P7hjHeNte8KWmKqSQs5FxBhotnGQ266fz.34Lkzy<br />bool(true)
Output for 7.0.14
$2y$10$T6STIi1ykuHpVO5VTjVc7.aVBwsTbT2pEfPWWaDWWZSJcxG3ieabq<br />bool(true)
Output for 7.0.6
$2y$10$8KpaRJ.tcrjB3wJqszL.VOjtR83m3d5Y4hkP/qhEqg.c6epIn8OrG<br />bool(true)
Output for 7.0.5
$2y$10$om1jcGThBcuVcxvKVLxttu/tzWC99gwdbWIpXPLl6qiHhO7qcJ4Ey<br />bool(true)
Output for 7.0.4
$2y$10$iBB9pJqZYnIGtNqQtDQmGua/vPWciBrya3Bb3O9YB9g4e6Qn9Qjly<br />bool(true)
Output for 7.0.3
$2y$10$deOnXOT.yooMbNy55PJJr.hfOKSjsrzMiwu1YCelOCXiAgfqNvUZy<br />bool(true)
Output for 7.0.2
$2y$10$fJkPYVgRzjpdz3d0lYrHP.b3CA8j2op.umxmNRi7/iu5fLGWnfmcq<br />bool(true)
Output for 7.0.1
$2y$10$rh/Cno1n2G7LfhIU7r8Y2en8N7C5RIQke2HRyqzV30oZLNfAa1k7e<br />bool(true)
Output for 7.0.0
$2y$10$DbbP3BYCzhQpWMwaHXSEaeTwQQivokliSo5P2er2VJ/Se4C00SQpG<br />bool(true)
Output for hhvm-3.12.0
$2y$10$.gpP/vbIUV5SOf8UHBw.OuWchdr2LhtFVKZhRBKW55qIu0dPAtKmi<br />bool(true)
Output for hhvm-3.10.0
$2y$10$.OVLfosgY84vyAUqrp.pGekrqXohEMDSqMt9QH8P1F8t37y/a4fy2<br />bool(true)
Output for 5.6.28
$2y$10$z/th.mJ4hxUtSz3ZB.Z5q.H7QoqYqstw7xcakO6Q0UcfTa8qVZZyO<br />bool(true)
Output for 5.6.21
$2y$10$.gUT1dFaZSm2RL0JP07FseKqrHUYNG1qsjZ9asUSK1I3K4IvJR.2i<br />bool(true)
Output for 5.6.20
$2y$10$sjA.kPkEbIszsYAN.uDYNusaDeOTfcVsV8pW3umDpklOQxKIYTpHa<br />bool(true)
Output for 5.6.19
$2y$10$lotSska7Fk5Beth.D351Tu14EM2vbq69XcsJglSiSWBuVGmPOlQ0i<br />bool(true)
Output for 5.6.18
$2y$10$YMsVBUqLTLxEbsOWZGtyEeGvgtASwEWNdPWzjEfl0Gsn8XWFzNdZG<br />bool(true)
Output for 5.6.17
$2y$10$c8d7ehnoN4wanNkKx1y1eOA5kETPVCHqipAZ4ZsfwZc6tLusSC.4.<br />bool(true)
Output for 5.6.16
$2y$10$3gGCpeLyfvMNcP8krXlTseFEzuGpzP8U8rPB/kGT7vyNYWNtsbWeC<br />bool(true)
Output for 5.6.15
$2y$10$h3HyUEGJb/LJhWWh46CeAeD632se7JS4kIoG7uym/p/Hq7M0XXDvS<br />bool(true)
Output for 5.6.14
$2y$10$8qGPUoeS5LxQp4LNqnz86OMTs3FNBiaNxvTTHYIpvl6FrMQAp1yo.<br />bool(true)
Output for 5.6.13
$2y$10$dMgy3qM3Zvml44KVEhT98.uiuOfn6t2ea6J284uWgvVeLfwemVSJC<br />bool(true)
Output for 5.6.12
$2y$10$YukaS.4XzLzq2f.Ny1PTs.h8.IBUzM/XvbFpGeVJeqK0C/zGJI3WC<br />bool(true)
Output for 5.6.11
$2y$10$TXAG7BiqqKMNZ6WlBN2LReJamXd61Mb2JD5BJsN.HrfIMg/GvM.7m<br />bool(true)
Output for 5.6.10
$2y$10$1zX5T6bK2zJUgfkO.9jQqe2n/BpwoDTs6TYmkpPgwmJx/d3.p8i0y<br />bool(true)
Output for 5.6.9
$2y$10$i1r4pzdXf6Q10RfQpV/K0OYuB7rjWWpBnKcf73Pe6/SLrWcyCCQRS<br />bool(true)
Output for 5.6.8
$2y$10$NTAVuNMeAaMsijppw.Yuou4OwQv7bR9gDzLXvK9nnTrq1r2/sNURi<br />bool(true)
Output for 5.6.7
$2y$10$v3hwQod71KyoZ40CccrxvewACHFDZi2JrAhRxcW0Jx7Bi0YJjDQp.<br />bool(true)
Output for 5.5.35
$2y$10$3Ye.1w.2HmV7gQzfWLU8EO.hrQ.QZiqRB9Xc12mLMdRTdVBdawGl2<br />bool(true)
Output for 5.5.34
$2y$10$KLMuoP4/5t6xN8pA0Gm9ZudE.oAJMYqU2gw1O5vEL93RByd0fafoW<br />bool(true)
Output for 5.5.33
$2y$10$LXC4s.8Dt6GO9V4515e5LuOtVM0UU7JtJ2GM9JGsBB167mAHnVF8u<br />bool(true)
Output for 5.5.32
$2y$10$A1K2F05v57AsKb.Sy/I2SeaUCUKT4STDMeL74Opo5PGlWHhGCbzre<br />bool(true)
Output for 5.5.31
$2y$10$kaiIG11n9r9rQeuTHcEuReBJI6CMwb/LrD2VZRW.sL2dZmW5q51zy<br />bool(true)
Output for 5.5.30
$2y$10$JFljKjR..8IfiZuuUIhU8uOgc1Iz7m26Eud2hkq1mr4sgKIJioSlq<br />bool(true)
Output for 5.5.29
$2y$10$P8lSyPxF2VuC8HwBylhL0e4s9p56NivFoTMBric0RoScxM2GhhrE.<br />bool(true)
Output for 5.5.28
$2y$10$xbvKg406jcQSUUrnucdeA.7z1Ff.WVOMqj0G2FX9Dg/qs1o1Gb9K.<br />bool(true)
Output for 5.5.27
$2y$10$ZliEr.2HnJgfsyn6fde4/elnIZydliiF7oa/RRUuyDcVvHBjeWhE2<br />bool(true)
Output for 5.5.26
$2y$10$OC.VdPiXAtmRYR/R7.Uuf.UbPutnnR62rWDyelgzB31aGUrbOgBBm<br />bool(true)
Output for 5.5.25
$2y$10$LZyK.4uT.zFL20sCP8Xcz.0MM/IlnMFrOHD9CZ/vPAP/ivyTT0gK.<br />bool(true)
Output for 5.5.24
$2y$10$73lqfyUQq6YGLk5BSNzC/.Bye1GtHFygCbAv55gdL7Yo4m9pwd6K2<br />bool(true)
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/g7EL4 on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: password_hash() in /in/g7EL4 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: password_hash() in /in/g7EL4 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: password_hash() in /in/g7EL4 on line 3