3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "abcdefg\0"; $b = $a . random_bytes(33); // Same prefix, with junk added after the end $hash = password_hash($a, PASSWORD_BCRYPT); // Since $b has junk added to the end, we'd expect this to return // bool(false) var_dump(password_verify($b, $hash));

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
170.27 ms | 2427 KiB | 14 Q