3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $password = 'S3nh4Sup3rS3gur@'; $hash = password_hash($password, PASSWORD_BCRYPT, array('cost' => 12)); echo $hash . "\r\n"; # $2y$10$PwbhVaqzuUSl5wSdi.iCK.RBz5pQp/a.6lRdSRttY8s2qs7dn5hTq $verified = password_verify($password, $hash); var_dump($verified);
Output for 7.2.6
$2y$12$bA2pLHxpNEgipqbDMYLwD.xtUKvLR9U/Bt0mtUmDWyodWUwPl2FW6 bool(true)
Output for 7.2.0
$2y$12$Six6WqeDlbZNrfOqYuDGMen00XYUpqv7nJkf5vrAMmxZAUh/JEGLO bool(true)
Output for 7.1.20
$2y$12$GbrELpDnkHEpPeroUxB9NOLXxIE4pk5tVafyO.i56JobLxbUAz/Iu bool(true)
Output for 7.1.10
$2y$12$cadcLUSahPlt6zkX0A4gFORYk1OHOpXAONeytPozTSDs8VDAelIby bool(true)
Output for 7.1.7
$2y$12$xBmIh3r3wI8AmZvw9c0UM.1jSViunSSJBCsTQi25cSNeMXx6hM4XW bool(true)
Output for 7.1.6
$2y$12$R51xZLLT/vMEqA2E2xuYQOc2POXysR3Df5JyswCqhRxj6x6fhF7F2 bool(true)
Output for 7.1.5
$2y$12$5J9/wOXdn.IsmYYVCXsmS.bDUVIE/uwz3QA8WZqj5F93DJvhyegBC bool(true)
Output for 7.1.0
$2y$12$7FqWn8wcZywvLmqmJci58.PDnhCZ4FuvrnZcI2p53MwPFwak8ar2e bool(true)
Output for 7.0.20
$2y$12$WFbkfM004P9ER6NTpwh1uOAy0IjtRTQ3DMYFWiLkFonqyAnDH6QBK bool(true)
Output for 7.0.14
$2y$12$kOk5WGoy9kAxaOTZLLufjerekqcirociRrmGorSj48T.C8LA7HBpy bool(true)
Output for 7.0.6
$2y$12$5xCnPrtKMpbn3nqJDotzAe2yN2GJ2gpp5.BxXoqgZcmQPD3vOxzo2 bool(true)
Output for 7.0.5
$2y$12$SxuxibJxjJZ/6tCWsWZZoObssyhoJ63I/bCdt7iY3kSQxDnnGCJ4u bool(true)
Output for 7.0.4
$2y$12$lTYJcrQ8luYNeW7z2v3I1.gyNHhmO9SVcAL8bYcxmGDAYeGgeOxMW bool(true)
Output for 7.0.3
$2y$12$NLNBvtEB0PoNGwmmB6Xi6eLD0LNo8H/IsEQwLHvaLf3Vs/JU2PKkS bool(true)
Output for 7.0.2
$2y$12$Rg.Ii3vYjR4lD.xg26dWYe3zaeshh11KUuUYdDbC/Pw0ubOvQWSfa bool(true)
Output for 7.0.1
$2y$12$8BtqVIW.sw2AM6Y/E9quoe3NB6AZmf65nIAj1anEJPY19eRIaaaeK bool(true)
Output for 7.0.0
$2y$12$H4a54uY6SXa/B0U6qNzEqeRJR72UUNAco46N5MuFgRU4x3yneduRm bool(true)
Output for 5.6.28
$2y$12$ROYo5KKKPgi1D/8MdCo0K.6J9qzKbJcKmlQzyGTI70AhQlrzbZZ2y bool(true)
Output for 5.6.21
$2y$12$8mkgfT0vr0ac727bZdBcc.2PdIosaFcNbMY60ZgY3tBa7f7NJPDDa bool(true)
Output for 5.6.20
$2y$12$SPI865d3U2M0cmlPTgpJBuDLZAJXkEMUyVeYEW1qRe.y57dpuc6Ti bool(true)
Output for 5.6.19
$2y$12$zCjMmPD83WT7lKLU4lAloeErts.LCTifhrOSRO3lwN5g1GFBiHWrS bool(true)
Output for 5.6.18
$2y$12$pJtn5/IfTHD4UAqlG0.VDe/VYkNLN2j8bgW0B2x2DSw/BYpjkfNbG bool(true)
Output for 5.6.17
$2y$12$WJ9bVEt7wjPktbCaklK.XO7pUcMVW3Z2FldhBg8ScjfwT00BZdOB2 bool(true)
Output for 5.6.16
$2y$12$mx3A0P29wlGe/hi8/FmpxefoTJjWdU9H5NM4tQ56eoUpIcrXviWey bool(true)
Output for 5.6.15
$2y$12$jykFMZZO6x4EC4PMSArNA.1XZQKNTwtM6/03vJ2X.9.YMGpbwsHpi bool(true)
Output for 5.6.14
$2y$12$Xwc0VS.EcNOUJADpGixPCe/NJOJBwvnvQ5Gx/f0pvpBTr.xWvbl1i bool(true)
Output for 5.6.13
$2y$12$FW6vULqKy5wR1duD.alGJeFn32p4gqcD/oio43effRzJSvQZFsLL6 bool(true)
Output for 5.6.12
$2y$12$TZFnmCk/8J.ncfjLq0hbye382u1ZUhcsyuzppPO0qydf6gDxA8L0q bool(true)
Output for 5.6.11
$2y$12$LCQ40deWS2i0YsUOV6xGMOaKdFIHfSZAGxKTAR4IDfpx9S57MUoP. bool(true)
Output for 5.6.10
$2y$12$sEIZbXpZKw9dwUN9Ixhb4.sHwr2F29DLv1KVBHv.XpivFDzmGwwI2 bool(true)
Output for 5.6.9
$2y$12$1oUEI./2vVPSZWeC0nzSF.04l9ej8modtPSLRP5UMHSjpLYJTiYnq bool(true)
Output for 5.6.8
$2y$12$Zfg2GMf8EDjLXnAWIfeY6Of0UlhqsoqKYMcdL3ZZV/2cc0.OX5TzC bool(true)
Output for 5.6.7
$2y$12$MEWHB/00CdXT/4Mc02CI0.6HUWw3RTSCpVPznAZqvijcqcpHaeXee bool(true)
Output for 5.5.35
$2y$12$VXzIuH4D0jWinJMvsQFinejlRs5eOcOzJnSEVoeifupRtQud5WhWm bool(true)
Output for 5.5.34
$2y$12$T.t0Dfx1wAcAfwMr3fMtuOsQpk4uaQjmoCuw/GBWRBTXAryacbDRi bool(true)
Output for 5.5.33
$2y$12$gcFo0nMMbRijXO0VXW.JauAunxirrkQantGFTekuUXpXfJrKpWmr6 bool(true)
Output for 5.5.32
$2y$12$6yJV370CvtmcaHOWC5hwLuYnqYDUvv51Y4yXY3t0uzcQGyt0SraUS bool(true)
Output for 5.5.31
$2y$12$eVtquN0aHLS2MGJnL4BHUe6a/8J5KRheTeM83QkQtH3ecJ8B3BYPG bool(true)
Output for 5.5.30
$2y$12$BRRGIZfKp4Gv2np5DD40kOEBWJnuEdoht18NDYxQxR4HP0bDLRxeW bool(true)
Output for 5.5.29
$2y$12$By1ZL44gE5S9RNtk70Qpie/rnSG4KMLynC6OxEwqbqpX5wu5vfSYG bool(true)
Output for 5.5.28
$2y$12$ZM9f33z91jIbUazINrwbQ.eLa/yNW5/H0581ygOswVNUSA8wfHZiO bool(true)
Output for 5.5.27
$2y$12$sQ.NCphS1AdQQI2efCtY9OlymrsvM6.TQSPBjji/l7DtjBgwqSjb2 bool(true)
Output for 5.5.26
$2y$12$V.a90HkWnWjtlkgL7cYBFOu7r7cBDQCGb.s.IEVwSADTnQG1YxlHO bool(true)
Output for 5.5.25
$2y$12$txHe.3Vyp1poQfyqcHzIMOwg2rLwuUSk64TxG5EmJQfNZ5TdvZFX6 bool(true)
Output for 5.5.24
$2y$12$nmI8mbwV8iwdXdwBCy7OLuAZejK19Vy1Z5KJ5HdoIDiOT3e/rPW06 bool(true)
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/sLY1B 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/sLY1B 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/sLY1B 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/sLY1B on line 3