3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $password = 'test'; $salt = '$2z$07$testomadasdsadsadsadasdasdasdsadesillystringfors'; $digest = crypt($password, $salt); if (crypt($password, $digest) == $digest) { echo 'YES.'; } else { echo 'NO.'; }
based on sQS3f
Output for 5.3.7 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
NO.
Output for 5.3.0 - 5.3.6
YES.
Output for 4.3.0 - 5.2.17

Process exited with code 139.