3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $password = 'andre'; $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$1daGcGWHB0VqeFfnQqTeTuWL6C9KbsIUcHCY9znNZpYLKWcm0YiWu<br />bool(true)
Output for 7.0.14
$2y$10$e.QXHwDmBb.IK1aHCR1bmu4Cnejg8wEgXP0X8U0RrTFQ8BSkQLzNy<br />bool(true)
Output for 7.0.6
$2y$10$fnePPBATp.AwUiai5.HR7ew0RJYtfeRMd.d0m3xCeh6QDORF6bsC.<br />bool(true)
Output for 7.0.5
$2y$10$WoNcalkaQ88zxgv5fXfg7envoHUyL61MOzh6mmZbXsW20XBLeCn82<br />bool(true)
Output for 7.0.4
$2y$10$la1GnY1UL/gnXIpmZzSpMeqpy8hXlCnvUGgAN8.7xrJOl2NjkfJ4S<br />bool(true)
Output for 7.0.3
$2y$10$Fxj8cAhHcs.s0yqiLzaMquouotFROZ2MsP7t0/D08OB50aMR4z3Oi<br />bool(true)
Output for 7.0.2
$2y$10$mcZeXoctUWXaolXr0DiAZ.8ysvq2q4GHg1LaGdXAGbmo4NKGqLVQW<br />bool(true)
Output for 7.0.1
$2y$10$W1tSIVGP0YKtK4mqOtBwl.7KEJwW3hN0v3JaG8W8f1kC6mEE6JM8S<br />bool(true)
Output for 7.0.0
$2y$10$ixl9Jen0nG/UrQlwmNDuSeq4kuWu41xHC/evildiy0Yo/HnH0gkam<br />bool(true)
Output for hhvm-3.12.0
$2y$10$gqED.j75iUhliRU/1.c6o.PJr/v8q2kPVdGVFjlfLiWUwLkbc7rXm<br />bool(true)
Output for hhvm-3.10.0
$2y$10$TqMslsHLagZCk6Uaw4aICeYimsgdtk3nHXM78Frxi8aek3txVyI7a<br />bool(true)
Output for 5.6.28
$2y$10$FYnvokTftcIh5jm8DIorRu7x9o0hWRGnLHQ9VlrAamxKTxqS37RCC<br />bool(true)
Output for 5.6.21
$2y$10$tmoeLKbNwdyEgdMtr3mVJupp8TzUniap76SKFRH5bvKZ/NB6iyFs.<br />bool(true)
Output for 5.6.20
$2y$10$HpixRGOvl1Gp6WuwteUfduIP2WZG64XGNTg3iPClJe5AvFKkAEEgC<br />bool(true)
Output for 5.6.19
$2y$10$I8u999/3EpqyKSl/.DdbCeKvQNHuIXor6Hm4GRXq4u4YvHpR7jsMK<br />bool(true)
Output for 5.6.18
$2y$10$c2TIj0UUq0OYKYDiMmCIAeiUujLinmYq9sONuqSo9nwLn6hFMZrwG<br />bool(true)
Output for 5.6.17
$2y$10$oI8/4japyYWgZiP1ODBWVOfwakhYU8v15t1C0uoJG6G4g0tIwpYuW<br />bool(true)
Output for 5.6.16
$2y$10$VgWbWRXbTCQTJ0h5pCr.c.lTZo0jn/uHFBC6pfBOEMr7vHxJiGHYC<br />bool(true)
Output for 5.6.15
$2y$10$w8ejd5mSX209xDSqlYMOGe2fkuLa0tkiyp5Bz7Orhcq5w.0/nTA0G<br />bool(true)
Output for 5.6.14
$2y$10$TSjfjGbgOdrrlZ6.VwRUmOzB9QRzLYVvojzKZ6Ts0QQTD6yjUF0tq<br />bool(true)
Output for 5.6.13
$2y$10$uYfVlRTgubAhCD5LN66GgO73q/ty3Q8ePjlIIFVfXk5qN78ebyYCe<br />bool(true)
Output for 5.6.12
$2y$10$FzU216VHKG/5CF4BSHxKj.h.9sdM2Bkb9uoEue69E8kO38w2Ut5aq<br />bool(true)
Output for 5.6.11
$2y$10$MYBZiKPs1uLf4mEi9V58reVgMLDsMTvhmd2FE2g8EYwDgQgyZ3uuK<br />bool(true)
Output for 5.6.10
$2y$10$yovRfRB7n.P4UQOSdkQjPOdTH1S.TLAI8xDBVRFe6GKPnSwcdAhd6<br />bool(true)
Output for 5.6.9
$2y$10$kJzPBMRHQVw2781lZhkUYO6ZpMjzGmwfLxq0BZsRrbyflqHZ0Rkri<br />bool(true)
Output for 5.6.8
$2y$10$i9jVYwvO7GwGSHgcZmfo7ebQBTBhC5dZHVP/IfCHrXa8bpQvxd.aa<br />bool(true)
Output for 5.6.7
$2y$10$iBDQW9NF7eKZAZ1Dk30DvewZSosRrtqVtjCsn07Xt4RgTR91ozBhe<br />bool(true)
Output for 5.5.35
$2y$10$jzmKGXlZO36YVb2fnLIC7eqoznPEJJDaqsTGHrnnNaSHVKyzosut2<br />bool(true)
Output for 5.5.34
$2y$10$7ZcOreXhrMlRi1OdDNrsCO3BJcp9Oy/tjDmRj66BVPq3wWnSX3zhq<br />bool(true)
Output for 5.5.33
$2y$10$CWVebi5x7pAnpeb4efjWFO7H53CMK6EGdwdfT944LkrNWlH7Uir4m<br />bool(true)
Output for 5.5.32
$2y$10$LxgjBnG7QoeXTYWl3WcCIOvc.BI6MfFVGTRj9CLrDcpy7PbF9sgJO<br />bool(true)
Output for 5.5.31
$2y$10$AvQIan7qkgrYCSisLAWRsenTknbgXay8Jd8zvinUvknH317bb1DXm<br />bool(true)
Output for 5.5.30
$2y$10$gMka5yfgmNeIvFFaiuj5duyB40AiRr/9S78uJzKDfCzNuM/04ES4W<br />bool(true)
Output for 5.5.29
$2y$10$Yk0PPlm2kR6TO2ox.9ypR.d6xFGauVl7fQo0AVo7OkEyVp3buMRP2<br />bool(true)
Output for 5.5.28
$2y$10$sR9bS/VOy3oWzVtYbWmFQeXswXR7NCIM1/CAVavVRrBakjrp6bJN.<br />bool(true)
Output for 5.5.27
$2y$10$OP3/j8wmk/WGWzHQNM9raO2q/GqBR/CPjJSnELrguhvIx.C7zL/KG<br />bool(true)
Output for 5.5.26
$2y$10$rRuqbLFVlP6rsjKCGfcTd.Ub8aRhr2AptBYg8oWYTUNfNtFrk0sbC<br />bool(true)
Output for 5.5.25
$2y$10$9/w09w5czZEb5L6xLHkIH.vL7.Dp7PFdJwrBC0.vtHZDYeMugcaYa<br />bool(true)
Output for 5.5.24
$2y$10$K.uIvzZIU1ogZLKA1.Ap7.ivEbrn4Oucisgo4ppzFW4LdBLrHr5Di<br />bool(true)
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/2YeRi 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/2YeRi 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/2YeRi 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/2YeRi on line 3