3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if(strcasecmp('string1', 'string1') == 0) { echo ' Strings match.1 '; } else { echo ' Strings do not match.2 '; } if(strcasecmp('string1', 'String1') == 0) { echo ' Strings match.3 '; } else { echo ' Strings do not match.4 '; } if(!strcasecmp('string1', 'STRING2')) { echo ' Strings match.5 '; } else { echo ' Strings do not match.3 '; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
Strings match.1 Strings match.3 Strings do not match.3