1--TEST-- 2MD5 / Base64 3--FILE-- 4<?php 5function test($str) { 6 $res = md5(base64_decode(base64_encode($str)))."\n"; 7 return $res; 8} 9echo test(""); 10echo test("a"); 11echo test("abc"); 12echo test("message digest"); 13echo test("abcdefghijklmnopqrstuvwxyz"); 14echo test("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"); 15echo test("12345678901234567890123456789012345678901234567890123456789012345678901234567890"); 16?> 17--EXPECT-- 18d41d8cd98f00b204e9800998ecf8427e 190cc175b9c0f1b6a831c399e269772661 20900150983cd24fb0d6963f7d28e17f72 21f96b697d7cb7938d525a2f31aaf161d0 22c3fcd3d76192e4007dfb496cca67e13b 23d174ab98d277d9f5a5611c2c9f419d9f 2457edf4a22be3c955ac49da2e2107b67a 25