3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print(intval(md5('QNKCDZO')) . "\n"); print(md5('QNKCDZO') . "\n"); print(md5('240610708') . "\n"); printmd5('aabg7XSs'); printmd5('aabC9RqS'); var_dump(md5('QNKCDZO') === md5('QNKCDZO')); var_dump(md5('240610708') === md5('QNKCDZO')); var_dump(md5('aabg7XSs') === md5('aabC9RqS')); var_dump(sha1('aaroZmOk') === sha1('aaK1STfY')); var_dump(sha1('aaO8zKZF') === sha1('aa3OFF9m')); var_dump('0010e2' === '1e3'); var_dump('0x1234Ab' === '1193131'); var_dump('0xABCdef' === ' 0xABCdef'); function printmd5($str) { print($str . " => " . md5($str) . "\n"); }
based on Dm4PG
Output for 4.3.0 - 7.2.0
0 0e830400451993494058024219903391 0e462097431906509019562988736854 aabg7XSs => 0e087386482136013740957780965295 aabC9RqS => 0e041022518165728065344349536299 bool(true) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false)