3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str1 = md5('240610708'); var_dump( $str1 ); $str2 = md5('QNKCDZO'); var_dump(md5('240610708') == md5('QNKCDZO')); var_dump(md5('240610708') === md5('QNKCDZO')); var_dump($str1 == $str2); var_dump(md5('240610708')); var_dump(md5('QNKCDZO')); var_dump( '0e462097431906509019562988736854' == '0e830400451993494058024219903391' ); if( '0e462097431906509019562988736854' == '0e830400451993494058024219903391' ) echo 'true'; if( '1' == '2' ) { echo 'true'; } else { echo 'false'; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(32) "0e462097431906509019562988736854" bool(true) bool(false) bool(true) string(32) "0e462097431906509019562988736854" string(32) "0e830400451993494058024219903391" bool(true) truefalse