Run ❯
Get your
own PHP
server
Result Size:
625 x 565
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <?php echo strcmp("Hello world!","Hello world!")."<br>"; // the two strings are equal echo strcmp("Hello world!","Hello")."<br>"; // string1 is greater than string2 echo strcmp("Hello world!","Hello world! Hello!")."<br>"; // string1 is less than string2 ?> </body> </html>
0
7
-7