3v4l.org

run code in 300+ PHP versions simultaneously
<?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 '; }

preferences:
30.95 ms | 402 KiB | 5 Q