Returns < 0 if str1 is less than str2; > 0 if str1 is greater than str2, and 0 if they are equal.
int strcmp ( string $str1 , string $str2 )
Drop Us A Message
Write PHP Online is an online code editor which helps you to write and test run/execute your php code online from your browser. This is one of the simple and powerfull online php code editor tool available on the internet.
Write PHP Online supports all PHP functionalities and it runs using PHP version 7. If you want us to provide more PHP versions then please send us your thoughts on this.
We have disabled some of potentially unwanted PHP powered shell functions executing from this site for security reasons.
We do not track your IP address or save any cookies, also we do not save any information about the code you run and your personal details.
Thank you for using this tool, keep visiting and happy coding.