3v4l.org

run code in 300+ PHP versions simultaneously
<?php // use this to create the hash then delete it. //echo password_hash("thepassword", PASSWORD_DEFAULT); // paste hash here $passwordKey = '$2y$10$j33UPA7gNxSOBsXQcyquLOZRuO6X8k8hZOb1RA79iN8gLlqp9eIPO'; $userInputGood = "thepassword"; $userInputBad = "notthepassword"; if (password_verify($userInputGood, $passwordKey)) echo "correct "; else echo "incorrect"; if (password_verify($userInputBad, $passwordKey)) echo "correct "; else echo "incorrect";
Output for git.master, git.master_jit, rfc.property-hooks
correct incorrect

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
172.72 ms | 405 KiB | 5 Q