https://www.tools4noobs.com/online_tools/encrypt/ gives "a67a318c98a0307502ba81caade2f3a9" as a DES ECB result for the key "1234567890abcdef" and payload "encrypt this".
The PHP code
echo bin2hex(mcrypt_encrypt(
MCRYPT_DES,
hex2bin("1234567890abcdef"),
"encrypt this",
MCRYPT_MODE_ECB)) . "\n";
prints out "1a29ee87f2ad67644ff28450c676a664".
What's wrong with the code?