3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // testing: http://www.phpsadness.com/sad/47 $password = "ximaz"; $broken_hash = "61529519452809720000000000000000"; $hash = md5($password); if (md5($password) == $broken_hash) { print "Broken - Allowed!\n"; } if (md5($password) === $broken_hash) { print "Type-Strict Broken - Allowed!\n"; }
Output for 5.4.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Output for 4.3.0 - 5.4.3
Broken - Allowed!