3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $password = "test"; echo $password; $hashToStoreInDb = password_hash($password, PASSWORD_BCRYPT); echo $hashToStoreInDb; $isPasswordCorrect = password_verify($password, $existingHashFromDb); echo $isPasswordCorrect; ?>
Output for 7.1.0
test$2y$10$X8HpzRMqvsJSBCPiFCVhv./ZGsOhKnmDri5eWUoroOuWezblT0Hnm Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 7.0.14
test$2y$10$S2XpDq9xC/p78clBepQF0OYoHwlY.2xho8VEM5SkidW95BxNsGlry Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 7.0.6
test$2y$10$1b9RC0vTRZqmCYSZSpaZjev5sofLIj7vxMYNeTMecO8n5LAnjO1e. Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 7.0.5
test$2y$10$xw6Co87Ax9bynakeNNMcJ.FDbQsQxEYtIuuTbPo8tGj2vb9qCUAhm Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 7.0.4
test$2y$10$3fawOMZwe3zYm49Z72Nh0ujSTFN1izBI2LUld/kNZjh1K1fHqBmAm Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 7.0.3
test$2y$10$g5iLAkgfQnYxJsH.a7hfFez0h8aDzk87xBlzo.1GaUu0BZSgThVxe Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 7.0.2
test$2y$10$p41CuGGQU8tY7BC06LeaAOiLzjrvBHM75hvoOS9zngb9639CoTc.. Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 7.0.1
test$2y$10$qaobybDniItmpoJBOA0a9u9mhsBW/7/vek3AP/O4nn9dy.wgQn9wi Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 7.0.0
test$2y$10$NOjqiM/Lw0EIiuloercekOQZ9Hn4IiZisUarbC5spdWVhKiJJgEvG Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for hhvm-3.12.0
test$2y$10$b68eZ6ws4O974dCEmYSirOInaEH1R7rtCkFdrxBpxx2yrLEO4Ud0G Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7 Catchable fatal error: Argument 2 passed to password_verify() must be an instance of string, null given in /in/MefDD on line 7
Process exited with code 255.
Output for hhvm-3.10.0
test$2y$10$HpTfNKIcKchz6kUczYavv.oXuw2WoOTyx1.6xDtlkmwiUXKG6Hlhi Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7 Catchable fatal error: Argument 2 passed to password_verify() must be an instance of string, null given in /in/MefDD on line 7
Process exited with code 255.
Output for 5.6.28
test$2y$10$G7f8uJ.DIUZIm5Fm5vLsu.dIXxnytQpEsCRzMBL26X6FuLHGg6RdW Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.6.21
test$2y$10$3FG5DWSdeB2myy6Y8PTVduKmr0BrU/jEzutL9PmqKdDz4e3VkYdnO Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.6.20
test$2y$10$GJgiBmOSbbFH6mt0qC0t3u6qX7zBwdn7ZLMUakU6EQPYK7RUCsrAC Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.6.19
test$2y$10$Q6IVLxKKJ2PDfyURl5OsU.xiA3aBnCP1GxmwatnppwqNN2ho0wiXG Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.6.18
test$2y$10$SEYEWbPEZBJDqphkNG/xXeQRb8RO67wHcK/Y3vJgFlROMihk14rcK Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.6.17
test$2y$10$ijdTvOkL9GeDJ/7ems4er.ISrUc9TykACerYTkZWIvOJnSh6iFRWy Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.6.16
test$2y$10$/8ulCN7QNAkwlm.ySN9Wju0VARxFuxSSlK9BcEBhrvMd71zzBAVjm Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.6.15
test$2y$10$d307Hrj9rMA6WhuDWlD8Vu8lvi9Vh9sHi6kaSjk1lxwxyirsBPbf. Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.6.14
test$2y$10$OF7.eiaj4LPIrV9nmn86m.SCJ8GfIwfrCxeL5VNDutTmDAXo1CkaC Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.6.13
test$2y$10$MNasEOw2iSIom0ZE1.uo2.oVgciCoW58BCjOWjBm.DwH7X2mIxWTG Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.6.12
test$2y$10$lBho4TMkOcK0LRfJuO4ocureKIPaQTDkGn2/3r6N3T2wIdpQFjbMG Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.6.11
test$2y$10$FZpqpoa.uwvYi3HXG81rzO0fkWDCwARI/vV7PIwmp2bGWivzmU3XO Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.6.10
test$2y$10$bZ5icda9SvnwxGOz.UT/WuBEulaAV4J.aeoqlj4TKP5Ici0lsOt8q Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.6.9
test$2y$10$iwG4M/Xp/NF3S7WtWhUqnuDv.yAzWoq.5l1DeACjV/lfbl/iAtyV. Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.6.8
test$2y$10$gVm2r5nMP23tUCUl97F2duAstSJtCHlfmd3JF7UMprod1B7lob8iy Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.5.35
test$2y$10$8Rb/htM/x8lw4Or8N27NyuulZzucx1V858sMh4zb1ux0HTAJkLi/e Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.5.34
test$2y$10$PV9JWtIQejQ92YkqkAnk9u53Z0E3vHxUXjHZKcVc9KmusCDT2sryy Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.5.33
test$2y$10$4pZAaMp1wKKDgUMGNube5Oc9lZ15DuLJTBlKMa.PmwxzcbeO1dhni Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.5.32
test$2y$10$n4/TzqSJxIbatFPFuM8hsOVF/F0quMQ9wy3b84HjgnQKtekJYnJEW Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.5.31
test$2y$10$nKruG6cbjJDE1Mez.8lxFeaqhFAZBiERpDOqbk.LNqEmOjYr/CYei Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.5.30
test$2y$10$mSVTzzC/AEnywEFaRgPL.OZmw.FQEEtJ7Z4Lny36gBEnMhC6VoYxy Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.5.29
test$2y$10$6toiaMb5eGkqo7YIXuLGpuWnNd5uFs7BIHuo/EHTs1LQikgRwto8K Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.5.28
test$2y$10$/UUXDamT0DhjnU0qzWIhgeRyl.FTHYfesDinHUm8M5I2gKz4fQz6a Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.5.27
test$2y$10$EVFWcMeTwncZhGrXLSfGFuwavSWcApUAKxC.GNqxvXgTi1EcHeaRO Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.5.26
test$2y$10$MvCIjMVryKMmSzOdHF3sOeReORYZYFN4YsV2O/vmQIBf4i2gBsana Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.5.25
test$2y$10$TMefhyNKxhiPSxwNzv6VJO/6UxOclqL858dIWfihsDzWSZr/gS3lO Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.5.24
test$2y$10$rL39uEjrM5CU6OeQgwb39uFo7P8erZEX9kFkdPe1zyKeyR6wDsyji Notice: Undefined variable: existingHashFromDb in /in/MefDD on line 7
Output for 5.0.0 - 5.4.45
test Fatal error: Call to undefined function password_hash() in /in/MefDD on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
test Fatal error: Call to undefined function: password_hash() in /in/MefDD on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
test Fatal error: Call to undefined function: password_hash() in /in/MefDD on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
test Fatal error: Call to undefined function: password_hash() in /in/MefDD on line 5