3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head> <title> Using comparison operatios </title> </head> <body> <? /* Abdelatif Abu alya 100608856 Feb26th, 2017 WEBD2201 */ $a = 21; $b = 15; echo "<p>original value of \$a is $a and \$b is $b</p>"; if ($a == $b) { echo "<p>Test 1: \$a equals /$b</p>"; } else { echo "<p>Test 1: \$a is not equal /$b</p>"; } if ($a != $b) { echo "<p>Test 2: \$a is not equal to /$b</p>"; } else { echo "<p>Test 2: \$a is equal to /$b</p>"; } if ($a > $b) { echo "<p>Test 3: \$a is grater than /$b</p>"; } else { echo "<p>Test 3: \$a is not grater than /$b</p>"; } if ($a < $b) { echo "<p>Test 4: \$a is less than /$b</p>"; } else { echo "<p>Test 4: \$a is not less than /$b</p>"; } if ($a >= $b) { echo "<p>Test 5: \$a is greater or equal to /$b</p>"; } else { echo "<p>Test 5: \$a is not greater or to equal /$b</p>"; } if ($a <= $b) { echo "<p>Test 6: \$a is less than or equal to /$b</p>"; } else { echo "<p>Test 6: \$a is not less than or to equal /$b</p>"; } ?> </body> </html>
Output for git.master, git.master_jit, rfc.property-hooks
<html> <head> <title> Using comparison operatios </title> </head> <body> <? /* Abdelatif Abu alya 100608856 Feb26th, 2017 WEBD2201 */ $a = 21; $b = 15; echo "<p>original value of \$a is $a and \$b is $b</p>"; if ($a == $b) { echo "<p>Test 1: \$a equals /$b</p>"; } else { echo "<p>Test 1: \$a is not equal /$b</p>"; } if ($a != $b) { echo "<p>Test 2: \$a is not equal to /$b</p>"; } else { echo "<p>Test 2: \$a is equal to /$b</p>"; } if ($a > $b) { echo "<p>Test 3: \$a is grater than /$b</p>"; } else { echo "<p>Test 3: \$a is not grater than /$b</p>"; } if ($a < $b) { echo "<p>Test 4: \$a is less than /$b</p>"; } else { echo "<p>Test 4: \$a is not less than /$b</p>"; } if ($a >= $b) { echo "<p>Test 5: \$a is greater or equal to /$b</p>"; } else { echo "<p>Test 5: \$a is not greater or to equal /$b</p>"; } if ($a <= $b) { echo "<p>Test 6: \$a is less than or equal to /$b</p>"; } else { echo "<p>Test 6: \$a is not less than or to equal /$b</p>"; } ?> </body> </html>

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
54.07 ms | 403 KiB | 8 Q