3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $setting = '$2y$04$'; $salt = '1234567890123456789012'; // SAME SALT FOR ALL PASSWORDS, OMG, DON'T $str = '123456789012345678901234567890123456789012345678901234567890123456789012'; $passwd1 = $str . 'A'; $passwd2 = $str . 'B'; hash1 = password_hash(passwd1, PASSWORD_BCRYPT); hash2 = password_hash(passwd2, PASSWORD_BCRYPT); echo ($hash1 === $hash2 ? 'same' : 'unique');
Output for 5.3.0 - 5.4.25
Parse error: syntax error, unexpected '=' in /in/0b7AA on line 10
Process exited with code 255.