3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $crypt = crypt('rasmuslerdorf', '$2y$07$usesomesillystringforsalt$'); $password_hash = password_hash('rasmuslerdorf', PASSWORD_BCRYPT); var_dump( $crypt, $password_hash, password_verify('rasmuslerdorf', $crypt), // ik gebruik password_hash() en crypt() door elkaar! $verify = crypt('rasmuslerdorf', $password_hash), $verify == $password_hash // nu doe ik het nog een keer! );
Output for 7.1.0
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$dhlWxti.HePXGfuXR7E5uujKCGP5bSkDIkaDo6/nkCqqUAh19fZ22" bool(true) string(60) "$2y$10$dhlWxti.HePXGfuXR7E5uujKCGP5bSkDIkaDo6/nkCqqUAh19fZ22" bool(true)
Output for 7.0.14
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$5TgZTi/Ho5SDk3xWZrtKye0VYkflAKdxmRVHdTnpdSr0lHEB7EXVe" bool(true) string(60) "$2y$10$5TgZTi/Ho5SDk3xWZrtKye0VYkflAKdxmRVHdTnpdSr0lHEB7EXVe" bool(true)
Output for 7.0.6
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$BEO2BtVjFF2/uGia4VBLSuImg.StBPlzaldSVfd/lZdYlkgfImJlO" bool(true) string(60) "$2y$10$BEO2BtVjFF2/uGia4VBLSuImg.StBPlzaldSVfd/lZdYlkgfImJlO" bool(true)
Output for 7.0.5
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$8rzSdX6DWTtgtci66k2rDeMNt6CYPXWwB7zIBE3WvB6t.q2FQXw12" bool(true) string(60) "$2y$10$8rzSdX6DWTtgtci66k2rDeMNt6CYPXWwB7zIBE3WvB6t.q2FQXw12" bool(true)
Output for 7.0.4
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$ZhgmU9zvUfucVdaFryoS9uaV148UcdWqlPueo9YT.rmpgY.VzEQhS" bool(true) string(60) "$2y$10$ZhgmU9zvUfucVdaFryoS9uaV148UcdWqlPueo9YT.rmpgY.VzEQhS" bool(true)
Output for 7.0.3
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$OAfcaP4TFLvDqCxD0ZH/wuS8SYozwfHDpYGqf6Lx2jsSw3itDY1RC" bool(true) string(60) "$2y$10$OAfcaP4TFLvDqCxD0ZH/wuS8SYozwfHDpYGqf6Lx2jsSw3itDY1RC" bool(true)
Output for 7.0.2
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$cXAwpRnFbvWdCAB/0UZ5jerNl3eL0EODbqG0TxdFGzX7rGlMsVrSq" bool(true) string(60) "$2y$10$cXAwpRnFbvWdCAB/0UZ5jerNl3eL0EODbqG0TxdFGzX7rGlMsVrSq" bool(true)
Output for 7.0.1
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$jGE3.y4jQkiDT85AHtwh3ebq5hNWX6qw9Kcj5o.076IPjdN.x31ae" bool(true) string(60) "$2y$10$jGE3.y4jQkiDT85AHtwh3ebq5hNWX6qw9Kcj5o.076IPjdN.x31ae" bool(true)
Output for 7.0.0
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$uk7GQxwREbjexH/BNUQ/IOUzsmutmthaKrg5cqG3rP1JAwRR8iSHq" bool(true) string(60) "$2y$10$uk7GQxwREbjexH/BNUQ/IOUzsmutmthaKrg5cqG3rP1JAwRR8iSHq" bool(true)
Output for 5.6.28
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$zEBkdrHm/2bYhB755wzike3E56qx4LRjJEhoQkOxd/MpkHCFQlQT6" bool(true) string(60) "$2y$10$zEBkdrHm/2bYhB755wzike3E56qx4LRjJEhoQkOxd/MpkHCFQlQT6" bool(true)
Output for 5.6.21
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$dc6s.7waauZ/FaL7k/KspO25Wtd1Hv8RrajXDGXHnkjWZD8vpQBTW" bool(true) string(60) "$2y$10$dc6s.7waauZ/FaL7k/KspO25Wtd1Hv8RrajXDGXHnkjWZD8vpQBTW" bool(true)
Output for 5.6.20
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$OR9HwqFfywzj0xEwr7vXSu0nWuXS9kSuFtQMI0Vg9deXo4Zb5oSi2" bool(true) string(60) "$2y$10$OR9HwqFfywzj0xEwr7vXSu0nWuXS9kSuFtQMI0Vg9deXo4Zb5oSi2" bool(true)
Output for 5.6.19
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$BNf2o8S6GLMQJMmW.PV5nOvXIn1MgLoTA0IJJbfobhqfeh2cA0O4u" bool(true) string(60) "$2y$10$BNf2o8S6GLMQJMmW.PV5nOvXIn1MgLoTA0IJJbfobhqfeh2cA0O4u" bool(true)
Output for 5.6.18
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$21pU/f.FiY3bZDlY0.mlxuWmxpWjlP/D1fORZZhA4ziIdBIJkVRP." bool(true) string(60) "$2y$10$21pU/f.FiY3bZDlY0.mlxuWmxpWjlP/D1fORZZhA4ziIdBIJkVRP." bool(true)
Output for 5.6.17
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$jtY/QgZri6UlXOitvbEK2OcPE0z/fEDlgd0D2LUjo1KhOn.3IuVXe" bool(true) string(60) "$2y$10$jtY/QgZri6UlXOitvbEK2OcPE0z/fEDlgd0D2LUjo1KhOn.3IuVXe" bool(true)
Output for 5.6.16
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$LdOA0F5qBUwhTl3kf/K8se9bw98UOQ9R5c.svrVn0a.IXy9A9psbe" bool(true) string(60) "$2y$10$LdOA0F5qBUwhTl3kf/K8se9bw98UOQ9R5c.svrVn0a.IXy9A9psbe" bool(true)
Output for 5.6.15
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$QGhDtFSbO8XI915WKlaUiO/IfIAS5prxB9VcB0zxVFDv5R1Xi..Ge" bool(true) string(60) "$2y$10$QGhDtFSbO8XI915WKlaUiO/IfIAS5prxB9VcB0zxVFDv5R1Xi..Ge" bool(true)
Output for 5.6.14
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$Nx8mfLNzQolyYxzN6m5viuWAkBTyk9lx8ExSOyetGeKDUOIttlV7a" bool(true) string(60) "$2y$10$Nx8mfLNzQolyYxzN6m5viuWAkBTyk9lx8ExSOyetGeKDUOIttlV7a" bool(true)
Output for 5.6.13
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$jCo/wgV5DZFgpOce4Q7lvu54Uboum6hTOPaDeyNS9cpYDAQCnGGku" bool(true) string(60) "$2y$10$jCo/wgV5DZFgpOce4Q7lvu54Uboum6hTOPaDeyNS9cpYDAQCnGGku" bool(true)
Output for 5.6.12
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$Y4HGzB1Kea1vHnDRitbE0OwzauY/Mm.a5f.ydDbS2t4Ak9dw1VVHq" bool(true) string(60) "$2y$10$Y4HGzB1Kea1vHnDRitbE0OwzauY/Mm.a5f.ydDbS2t4Ak9dw1VVHq" bool(true)
Output for 5.6.11
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$tjdOhfVIWygixrPSpFURaOPH/qWUZF0WTRZuNX6I2OucLQ63eAaCi" bool(true) string(60) "$2y$10$tjdOhfVIWygixrPSpFURaOPH/qWUZF0WTRZuNX6I2OucLQ63eAaCi" bool(true)
Output for 5.6.10
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$5kqdgmo9.u/WpGOm1WliN.x2ybTo7tcuMroE5DgvX7ItqW5SiQkf." bool(true) string(60) "$2y$10$5kqdgmo9.u/WpGOm1WliN.x2ybTo7tcuMroE5DgvX7ItqW5SiQkf." bool(true)
Output for 5.6.9
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$K/e93rkYmER5XJo2sq5FzOXQio4HemxnDs/Nx4SIYWP/nMcnN.3gO" bool(true) string(60) "$2y$10$K/e93rkYmER5XJo2sq5FzOXQio4HemxnDs/Nx4SIYWP/nMcnN.3gO" bool(true)
Output for 5.6.8
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$0kp3aiQNw11FRc9vwRUoOuk0fC8nNgQBKvXVPD/CcDPRX8bPJ5/Qq" bool(true) string(60) "$2y$10$0kp3aiQNw11FRc9vwRUoOuk0fC8nNgQBKvXVPD/CcDPRX8bPJ5/Qq" bool(true)
Output for 5.5.35
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$7Jp/wO1u3LyOkQy5MxfU3uJqaeF2NKo62LxBwad3/5zgslBAmfjzq" bool(true) string(60) "$2y$10$7Jp/wO1u3LyOkQy5MxfU3uJqaeF2NKo62LxBwad3/5zgslBAmfjzq" bool(true)
Output for 5.5.34
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$uYRxgP4xf.TxB7KXZ0/KW.An3S42VoVMAqfMnmBpHJBQhdtaskevq" bool(true) string(60) "$2y$10$uYRxgP4xf.TxB7KXZ0/KW.An3S42VoVMAqfMnmBpHJBQhdtaskevq" bool(true)
Output for 5.5.33
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$eqM2GoJE32/z/QwBpWQN3OmdlyWsegyFH.GTb03P2p5XKhe.MOedK" bool(true) string(60) "$2y$10$eqM2GoJE32/z/QwBpWQN3OmdlyWsegyFH.GTb03P2p5XKhe.MOedK" bool(true)
Output for 5.5.32
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$rLsNI84lQDjZdDQt4cDn1exPC1hBR.L9rcQSh5S/Wr6YD.d0Ewcv." bool(true) string(60) "$2y$10$rLsNI84lQDjZdDQt4cDn1exPC1hBR.L9rcQSh5S/Wr6YD.d0Ewcv." bool(true)
Output for 5.5.31
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$lAYHDk1kqgra52AZVRw.ZOIzJzMWzXvXSnchzvLqHyEvknBWyVFAe" bool(true) string(60) "$2y$10$lAYHDk1kqgra52AZVRw.ZOIzJzMWzXvXSnchzvLqHyEvknBWyVFAe" bool(true)
Output for 5.5.30
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$Plom0V4ZFo7DqEfsOR8pjeN7nSF50fiWPwkRVqDWeHmi93Nmcb/B6" bool(true) string(60) "$2y$10$Plom0V4ZFo7DqEfsOR8pjeN7nSF50fiWPwkRVqDWeHmi93Nmcb/B6" bool(true)
Output for 5.5.29
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$9J/9GDs.eGyxAP73saC1huv4h9O/2NDyUdwyOzA7gOaYGa4RrsQQ6" bool(true) string(60) "$2y$10$9J/9GDs.eGyxAP73saC1huv4h9O/2NDyUdwyOzA7gOaYGa4RrsQQ6" bool(true)
Output for 5.5.28
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$wd7c4woonfNva/ew8wUv0eT0FouDv68SmSOEEUp4ZGFAhFQ7S/a0q" bool(true) string(60) "$2y$10$wd7c4woonfNva/ew8wUv0eT0FouDv68SmSOEEUp4ZGFAhFQ7S/a0q" bool(true)
Output for 5.5.27
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$8HEbhzqKOS0L1jU9Ll603OFhF8RdqMq4rwiXC2e0xTI7aFEK1rEsy" bool(true) string(60) "$2y$10$8HEbhzqKOS0L1jU9Ll603OFhF8RdqMq4rwiXC2e0xTI7aFEK1rEsy" bool(true)
Output for 5.5.26
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$x.zUW30449XBztfzhFtsjORR/758uSHDuuWbjySvi0UAPyq8scjee" bool(true) string(60) "$2y$10$x.zUW30449XBztfzhFtsjORR/758uSHDuuWbjySvi0UAPyq8scjee" bool(true)
Output for 5.5.25
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$Bm9H9nDpF6tG8rqQFKzu7eXMVvi/RcGh6wJaZQDYmZIOXD7a/muXu" bool(true) string(60) "$2y$10$Bm9H9nDpF6tG8rqQFKzu7eXMVvi/RcGh6wJaZQDYmZIOXD7a/muXu" bool(true)
Output for 5.5.24
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$ZYGLIuWqZkRw6Pv3KFAd8.E8EBEiA95V0nAvYb8jhFkyamT5mzIUm" bool(true) string(60) "$2y$10$ZYGLIuWqZkRw6Pv3KFAd8.E8EBEiA95V0nAvYb8jhFkyamT5mzIUm" bool(true)
Output for 5.3.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/uvopP on line 4
Process exited with code 255.
Output for 4.3.0 - 5.2.17

Process exited with code 139.