3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = [ 'cost' => 11, 'salt' => mcrypt_create_iv(22, MCRYPT_DEV_URANDOM), ]; $hash = password_hash("password", PASSWORD_BCRYPT, $options); $pass = "password"; if(password_verify($pass, $hash)) { echo($hash."\nVerified."); }
Output for 7.0.6 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.6
Fatal error: Uncaught Error: Call to undefined function mcrypt_create_iv() in /in/AK8EY:4 Stack trace: #0 {main} thrown in /in/AK8EY on line 4
Process exited with code 255.
Output for 7.0.5
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/AK8EY on line 6 $2y$11$F6GCpUYv/2XgXQuKSwGuNe4SQI9azssQyMIfp3bPY5an17AismCJm Verified.
Output for 7.0.4
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/AK8EY on line 6 $2y$11$F2RAb923D8oApsZR8lrxXuYw.EkA2fO0V7C20gllNrUBqeZeN4Sc6 Verified.
Output for 7.0.3
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/AK8EY on line 6 $2y$11$kKbKSDtCJywxco1NShOigO311FU8jCmxnnYfujOCSTCGiFiK/lcDW Verified.
Output for 7.0.2
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/AK8EY on line 6 $2y$11$NRtCXv2YGjj8uSs/c3doaOr5DKdRcg3wpH4fOEqERl8chsL.7Igk2 Verified.
Output for 7.0.1
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/AK8EY on line 6 $2y$11$pkyGMyqGBctZT6I2CyOJKOwjee5evbCAz2ekGzEAM6Fps9AJYIaDO Verified.
Output for 7.0.0
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/AK8EY on line 6 $2y$11$DgZXc2uC2v2ku5nWU22swep/LobWMseCy4gbmSbPNrr622uzXppUy Verified.
Output for 5.5.35, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_create_iv() in /in/AK8EY on line 4
Process exited with code 255.
Output for 5.6.20
$2y$11$9TVJWvtvtWrn5C7qopqUDuSsDAEiRCBHkSHIkDJ7OH2VL5Tzdnb2W Verified.
Output for 5.6.19
$2y$11$KM2fJm5V7RDuTaSAS17oNe.Sq5FfPSPPGPV24RvLnsbhozlWg59.S Verified.
Output for 5.6.18
$2y$11$Ane.jJ3zBfofMZuy1mGyx.o3uch/rSWlVYVQzFtjTNpJ2tsry3qYG Verified.
Output for 5.6.17
$2y$11$Ca8aA1m15WMYI8Mutp09.eSdh0LY33lL.So63jODE2VOEEmyhFBPm Verified.
Output for 5.6.16
$2y$11$MZlqE3AVlkFXeAckcU6Trew0iyz2zSPq5KQRoFGiu.zKBztMMgNiy Verified.
Output for 5.6.15
$2y$11$YClEYK7l.eDWvkLhuk82QOw6qYW4dBDJuz8i7g9oS.Fh5MxnofERC Verified.
Output for 5.6.14
$2y$11$lpOYvAPuTOMn//92t1Z6YOd3iApIRUvFiVyTNUXYt5dJXpv7L3j2W Verified.
Output for 5.6.13
$2y$11$kdUHXgXFIOszxFzC0utJ6eIVK/I5MhGOiGG5v/vgfVQyY8nooam9K Verified.
Output for 5.6.12
$2y$11$i.TAx276SxGIgNRtfoNlqOJw2Nyx7SItv2iKrUxM2FcjzU9mIN6xS Verified.
Output for 5.6.11
$2y$11$uZ6I0zEWx0KvA53/86AICeKMDtf5aPDYfICnC2OOYzJ9vYZ9r2jae Verified.
Output for 5.6.10
$2y$11$s5zT40ZsuhxQIgs.dUBLRutzExuXGaA.jTH9hIdI0jWlRmdpQu5fK Verified.
Output for 5.6.9
$2y$11$acOGRspegNU3mpK72zK9TO/hP84KAmdf7y..zJ0.oEYUg3Lu9sIa2 Verified.
Output for 5.6.8
$2y$11$ohuUufUfU.WNcVvEhRVfbeRsYQ4WXo7f7eiCcWWbBFGiLDLUkAvIa Verified.
Output for 5.5.34
$2y$11$v44XbF1bbzh4Z9yevmXN0OA8BYY8CWR29sh6HsDt63p2djE93ggOe Verified.
Output for 5.5.33
$2y$11$AypYEu6BmuK5vid9nEIqfeYCE5EwKe58x9VqAJL5SbcKrkZ0Qjd6W Verified.
Output for 5.5.32
$2y$11$5Sj2apyzVRTAo.Gmh9N9cOSW7MCPfQaEwYnVKPjMITzWk6OdT2juG Verified.
Output for 5.5.31
$2y$11$xxseHdwrGANkfjaNUb7mKO94sVglIe/OQSxrniNzaZWH3Ge0dAxaa Verified.
Output for 5.5.30
$2y$11$Qv2WLyNpTjrJfZ79.WaGHuzgwI7OekiziIL/25C.dK2THjZbX4M3G Verified.
Output for 5.5.29
$2y$11$mVsysrLLg8p1fg43TUxIqOUZ/3chf92oEezPEAVjCi51R4TJvWwoW Verified.
Output for 5.5.28
$2y$11$jgO975WJtxYQv5ekdQtGY.RvWf5/ZKGQzcpc9.9try.syU5frZ2/O Verified.
Output for 5.5.27
$2y$11$5A0Tx4ouicptChKm4U1fnue9v.epu5TnTzFTq2p5diZCQ9a6BGwNa Verified.
Output for 5.5.26
$2y$11$AHWvbkxNg.9lnuZa2mAWuud4oCKDc.r9BjLN7A1ES3Yje3A9q0bgK Verified.
Output for 5.5.25
$2y$11$CTi3LOvFG8.MY3kcqtZYA.TyFhQN6pP.cFNhLV479koabfozOZIMG Verified.
Output for 5.5.24
$2y$11$rgl/q1CrmDYHs4fWxIdESebM0JlrsJYLlk1dOhy0wIl/brHZzEyMq Verified.
Output for 5.4.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/AK8EY on line 6
Process exited with code 255.

preferences:
106.67 ms | 401 KiB | 93 Q