3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(password_hash('password', PASSWORD_DEFAULT, ['cost' => 13]));
Output for 7.2.0
string(60) "$2y$13$RLwFhXR3G3CdSDq83OH3WeoPNBBZeT2ybTI0Wr4R3DkQJQYSVn.Ju"
Output for 7.1.10
string(60) "$2y$13$KHZVu.O9K7aX.kohXsvpuOMS9PBu0MhAT3YoHi5ZQFKfeLO5102nS"
Output for 7.1.7
string(60) "$2y$13$uw5BFv72FHsmE3VAlVxBaeJlGPsukuGNSD4n0PouLRXqHnRXjeGV6"
Output for 7.1.6
string(60) "$2y$13$NCb5q7D2mcTpuCVRwmYJ.eXbqx0g8t2eAKv946m1t/BPYF.qwOR3e"
Output for 7.1.5
string(60) "$2y$13$Ozz4Kas2RZP9dgC.WBWdQOab3/oumMq51MOpq/55v4AFgEGgTo5A2"
Output for 7.1.0
string(60) "$2y$13$ROSlPtoIgpACqx9pzxWnpOF0PAF9s0HS9EsJnV5rIU3zQgC6O4PFe"
Output for 7.0.20
string(60) "$2y$13$oUyDJxm2eRxCbVASXY5yC.XC2DbHO4568BEG714.FOQ1NQAEBx68G"
Output for 7.0.6
string(60) "$2y$13$9k2XQyvl5dDLJACozt0OAuSg7WoOX1DWuNds10JGkF8nZ3JpHCyBK"
Output for 7.0.5
string(60) "$2y$13$uVqOMMYc1mInxBka8p0vhOh4zJYqvKWNZQvJD1BWfr/JZuxFQZXme"
Output for 7.0.4
string(60) "$2y$13$4RCLx.cKtmj0RHGhqvYWLOIXkoVNMvuoRHJedAmr87qQu.86ifNXS"
Output for 7.0.3
string(60) "$2y$13$pDQ0O/0WvuLcX0K/x2r6wOh4O/6TqOKn.jMd/gAxisuwS2AQ1El1q"
Output for 7.0.2
string(60) "$2y$13$WNMYF8AhX6tBsJjCYPu4YuVXJRjeKRgMunWv8104ShOaacZsq4/M."
Output for 7.0.1
string(60) "$2y$13$z2dSF.uXabCWkHcFi0qe/eFs8mTezeIjM50ohIrPzMnNHCRoWW/a."
Output for 7.0.0
string(60) "$2y$13$qFWo0htjV7iZ5Gzw/m4hne7RUtmjdgIpvIUkW3/5Y3YVPU4HdtWm2"
Output for 5.6.28
string(60) "$2y$13$S7AWMskDb.N1Reoc4qDeCev2jaZB1nTYj/AUQriW2O7CRE/3DweH2"
Output for 5.6.21
string(60) "$2y$13$2jX9fTRIEajA5Xpttd9QPuHdEgY0Xc/sO4KYhRSlpOoVVV2vWKPki"
Output for 5.6.20
string(60) "$2y$13$HaREZvIOMJzjxtcQsqFoQuKLi415IWTWObGbTnBd4vKaDzcYwjoLC"
Output for 5.6.19
string(60) "$2y$13$t8FTUG3AFeB9NBH5RTyDEexIe704XjzwnBv8.iAUstNCDeUT1F2MW"
Output for 5.6.18
string(60) "$2y$13$eXvC46zhcJxvVlExk6i5NuTbRZ60QwpaivXNyPuA7qaRo5JKcDnvW"
Output for 5.6.17
string(60) "$2y$13$s.A0yOGLYfMC9YVdr9e4k.8HqlpcnFql83sOsKjej59NNwUJsb41u"
Output for 5.6.16
string(60) "$2y$13$11Tape4b2FGMtrgYlSw/hejVCFXo/immwTvwpPKxmMYiQKbTevQzm"
Output for 5.6.15
string(60) "$2y$13$QOa4mzD8UhbxJtkMrgLJr.DB/1g4UM/eSgNGebwrB6W783Y5zl2RW"
Output for 5.6.14
string(60) "$2y$13$1n8sOiqSwIJH8lE5OcgRhO2R4inzSIFlRgFF6rJ2xYi8MFe.acJtC"
Output for 5.6.13
string(60) "$2y$13$wM0HAxw1GudrmyjSdTgxq.LiwH0lS4AHI/4c4vK85xsBDep2XWUm6"
Output for 5.6.12
string(60) "$2y$13$qClnNOaBZnBh1L7.hkJzOu33HCSlLjFYXd4puKzoG2THusiuIcsru"
Output for 5.6.11
string(60) "$2y$13$et7M0TrV0A3bBmuTiI6Du.CspYLwzDSyKGqdQ.0KZ3i8iw4b0xxru"
Output for 5.6.10
string(60) "$2y$13$pkcQtsiqfBUeN9G4JFcT7uL2ix6PQpmZlMePr2jeggqYBar686Njq"
Output for 5.6.9
string(60) "$2y$13$A6Cn6LlOXC.zL9XxFI0EF.zIyJKZsU1QNlSdoQnPwG3Hz5YGCSYn2"
Output for 5.6.8
string(60) "$2y$13$geN/eu4BB0lngAhmeBYEa.qWMZuy6fCGBjINAyTrwjlpUz/c3xxTi"
Output for 5.5.35
string(60) "$2y$13$v82itRVKre1MTI94LPxIl.jIEpf5rfGiIYM.RPLgTUBP1qnZY.IJ2"
Output for 5.5.34
string(60) "$2y$13$GODD9rR/kxHXa3XI35AWVurUqcM11lU7GnR0a5Ky1nCwVfbyfv.Lm"
Output for 5.5.33
string(60) "$2y$13$gNpP4Bp2mJyVwFaTalGAI.QPgxg4luheAUBO2MVp2v3KSVvNZTiZG"
Output for 5.5.32
string(60) "$2y$13$wUobj0Kw47hQzkOUPnXVuOye6FhcSJ7/Siufz8X/Hvz0XxmGAPNxu"
Output for 5.5.31
string(60) "$2y$13$q3JJWMPNxLFAd9a6SSGi/.UO8/Mvooouc.AkcH.HdxoWI/NuOIZbG"
Output for 5.5.30
string(60) "$2y$13$tqOuStwiCZrd3O1A3suttOvIjUCcl5gnefyfdfyL252foeX8SbDKy"
Output for 5.5.29
string(60) "$2y$13$jjG/f/P.7Bxvu/9nIphiaOpRn9D4SJA9wkJEzybnKHDpB71ElnTai"
Output for 5.5.28
string(60) "$2y$13$WxqdaJGJQCdRGbc0WBI88.TeTPGo8wTGFwxoPI2oEAyqKb.aFFYjm"
Output for 5.5.27
string(60) "$2y$13$Vn4Q2x4siJSI86J.LMkzj.ssnHUshAl0AxTSABPpv8XfZKvLPvIdK"
Output for 5.5.26
string(60) "$2y$13$/RNzROfXxsZPiHDZLbPJK.zDhe4B17hv4i/KGvv8adF1h3XfhR5Y."
Output for 5.5.25
string(60) "$2y$13$gSY8LwaH3Gm9cIjBLrX5RO014935.wZBKeNGD0w.r1vXvGchFjbxa"
Output for 5.5.24
string(60) "$2y$13$5lMGomuG3uAgP5Wg.j3mOei5if5rUtyfzE/kHvMLfgKhcY7fZFkaK"
Output for 5.4.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/7o4eJ on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/7o4eJ on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/7o4eJ on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/7o4eJ on line 3
Process exited with code 255.