3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(md5('240610708',1)); var_dump(md5('QNKCDZO'),1); 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');
based on cMHFY
Output for 5.0.0 - 7.2.0
string(16) "F �CP�V)�shT" string(32) "0e830400451993494058024219903391" int(1) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false)
Output for 4.3.0 - 4.4.9
Warning: Wrong parameter count for md5() in /in/r8II5 on line 2 NULL string(32) "0e830400451993494058024219903391" int(1) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false)