3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $passwd = 'KN+jK*zIqtVh4'; $hash = ',,võë0$š4؈¨Ä1X²å`uÒëB@Ê ®›Áýe¶M©ß4'; echo $hash; echo PHP_EOL; $res = crypt($passwd, $hash) == $hash; var_dump($res); $is_valid = password_verify($passwd, $hash); echo PHP_EOL; var_dump($is_valid); echo PHP_EOL; $need_rehash = password_needs_rehash($hash, PASSWORD_DEFAULT); var_dump($need_rehash);
based on DdhCQ
Output for 7.0.0 - 7.2.0
,,võë0$š4؈¨Ä1X²å`uÒëB@Ê ®›Áýe¶M©ß4 Deprecated: crypt(): Supplied salt is not valid for DES. Possible bug in provided salt format. in /in/GeQbZ on line 8 bool(false) bool(false) bool(true)
Output for 5.5.0 - 5.6.28
,,võë0$š4؈¨Ä1X²å`uÒëB@Ê ®›Áýe¶M©ß4 bool(false) bool(false) bool(true)
Output for 5.3.0 - 5.4.45
,,võë0$š4؈¨Ä1X²å`uÒëB@Ê ®›Áýe¶M©ß4 bool(false) Fatal error: Call to undefined function password_verify() in /in/GeQbZ on line 11
Process exited with code 255.
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.2.17
,,võë0$š4؈¨Ä1X²å`uÒëB@Ê ®›Áýe¶M©ß4
Process exited with code 139.
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
,,võë0$š4؈¨Ä1X²å`uÒëB@Ê ®›Áýe¶M©ß4 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/GeQbZ on line 6 PHP_EOL
Process exited with code 139.