3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pairs = array( '240610708' => 'QNKCDZO', 'aabg7XSs' => 'aabC9RqS', 'aaroZmOk' => 'aaK1STfY', 'aaO8zKZF' => 'aa3OFF9m', '0010e2' => '1e3', '0x1234Ab' => '1193131', '0xABCdef' => ' 0xABCdef', ); foreach ($pairs as $k => $v) { echo "Comparing '$k' and '$v': ".md5($k). " == ". md5($v) . "\n"; var_dump(md5($k) == md5($v)); }
based on nDvY6
Output for 4.3.0 - 7.2.0
Comparing '240610708' and 'QNKCDZO': 0e462097431906509019562988736854 == 0e830400451993494058024219903391 bool(true) Comparing 'aabg7XSs' and 'aabC9RqS': 0e087386482136013740957780965295 == 0e041022518165728065344349536299 bool(true) Comparing 'aaroZmOk' and 'aaK1STfY': 4e91292830102879cd95e9bae60460e7 == 18976373cef16fcf4a4ae2711eda7878 bool(false) Comparing 'aaO8zKZF' and 'aa3OFF9m': 4d144fa94d853213a8772b845584b097 == a912b3d5b5672b4731ad37259811f221 bool(false) Comparing '0010e2' and '1e3': 3d96543dab8fdc745be29a5b08f6f697 == 8d9e78ee05f0247b1e9399c06976bda7 bool(false) Comparing '0x1234Ab' and '1193131': 3c86c680ec8e550bf00514ef953f13d2 == f5dfe83cce8f725c8468b4aca2e119f8 bool(false) Comparing '0xABCdef' and ' 0xABCdef': 9337330147aae5b45b5341f1ed6e6ab1 == c4f7fe9e373c99f4170cce1dfc47e792 bool(false)