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>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 27
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 38
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 49
Branch analysis from position: 44
1 jumps found. (Code = 42) Position 1 = 53
Branch analysis from position: 53
2 jumps found. (Code = 43) Position 1 = 55, Position 2 = 60
Branch analysis from position: 55
1 jumps found. (Code = 42) Position 1 = 64
Branch analysis from position: 64
2 jumps found. (Code = 43) Position 1 = 66, Position 2 = 71
Branch analysis from position: 66
1 jumps found. (Code = 42) Position 1 = 75
Branch analysis from position: 75
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 71
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 60
2 jumps found. (Code = 43) Position 1 = 66, Position 2 = 71
Branch analysis from position: 66
Branch analysis from position: 71
Branch analysis from position: 49
2 jumps found. (Code = 43) Position 1 = 55, Position 2 = 60
Branch analysis from position: 55
Branch analysis from position: 60
Branch analysis from position: 38
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 49
Branch analysis from position: 44
Branch analysis from position: 49
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 38
Branch analysis from position: 33
Branch analysis from position: 38
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 27
Branch analysis from position: 22
Branch analysis from position: 27
filename:       /in/Z1jXW
function name:  (null)
number of ops:  77
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Chtml%3E%0A%3Chead%3E%0A%3Ctitle%3E+Using+comparison+operatios+%3C%2Ftitle%3E%0A%3C%2Fhead%3E%0A%3Cbody%3E%0A%0A%0A'
   16     1        ASSIGN                                                   !0, 21
   17     2        ASSIGN                                                   !1, 15
   18     3        ROPE_INIT                                     5  ~5      '%3Cp%3Eoriginal+value+of+%24a+is+'
          4        ROPE_ADD                                      1  ~5      ~5, !0
          5        ROPE_ADD                                      2  ~5      ~5, '+and+%24b+is+'
          6        ROPE_ADD                                      3  ~5      ~5, !1
          7        ROPE_END                                      4  ~4      ~5, '%3C%2Fp%3E'
          8        ECHO                                                     ~4
   20     9        IS_EQUAL                                                 !0, !1
         10      > JMPZ                                                     ~8, ->16
   21    11    >   ROPE_INIT                                     3  ~10     '%3Cp%3ETest+1%3A+%24a+equals+%2F'
         12        ROPE_ADD                                      1  ~10     ~10, !1
         13        ROPE_END                                      2  ~9      ~10, '%3C%2Fp%3E'
         14        ECHO                                                     ~9
         15      > JMP                                                      ->20
   23    16    >   ROPE_INIT                                     3  ~13     '%3Cp%3ETest+1%3A+%24a+is+not+equal+%2F'
         17        ROPE_ADD                                      1  ~13     ~13, !1
         18        ROPE_END                                      2  ~12     ~13, '%3C%2Fp%3E'
         19        ECHO                                                     ~12
   26    20    >   IS_NOT_EQUAL                                             !0, !1
         21      > JMPZ                                                     ~15, ->27
   27    22    >   ROPE_INIT                                     3  ~17     '%3Cp%3ETest+2%3A+%24a+is+not++equal+to+%2F'
         23        ROPE_ADD                                      1  ~17     ~17, !1
         24        ROPE_END                                      2  ~16     ~17, '%3C%2Fp%3E'
         25        ECHO                                                     ~16
         26      > JMP                                                      ->31
   29    27    >   ROPE_INIT                                     3  ~20     '%3Cp%3ETest+2%3A+%24a+is+equal+to+%2F'
         28        ROPE_ADD                                      1  ~20     ~20, !1
         29        ROPE_END                                      2  ~19     ~20, '%3C%2Fp%3E'
         30        ECHO                                                     ~19
   32    31    >   IS_SMALLER                                               !1, !0
         32      > JMPZ                                                     ~22, ->38
   33    33    >   ROPE_INIT                                     3  ~24     '%3Cp%3ETest+3%3A+%24a+is+grater+than+%2F'
         34        ROPE_ADD                                      1  ~24     ~24, !1
         35        ROPE_END                                      2  ~23     ~24, '%3C%2Fp%3E'
         36        ECHO                                                     ~23
         37      > JMP                                                      ->42
   35    38    >   ROPE_INIT                                     3  ~27     '%3Cp%3ETest+3%3A+%24a+is+not+grater+than+%2F'
         39        ROPE_ADD                                      1  ~27     ~27, !1
         40        ROPE_END                                      2  ~26     ~27, '%3C%2Fp%3E'
         41        ECHO                                                     ~26
   38    42    >   IS_SMALLER                                               !0, !1
         43      > JMPZ                                                     ~29, ->49
   39    44    >   ROPE_INIT                                     3  ~31     '%3Cp%3ETest+4%3A+%24a+is+less+than+%2F'
         45        ROPE_ADD                                      1  ~31     ~31, !1
         46        ROPE_END                                      2  ~30     ~31, '%3C%2Fp%3E'
         47        ECHO                                                     ~30
         48      > JMP                                                      ->53
   41    49    >   ROPE_INIT                                     3  ~34     '%3Cp%3ETest+4%3A+%24a+is+not+less+than+%2F'
         50        ROPE_ADD                                      1  ~34     ~34, !1
         51        ROPE_END                                      2  ~33     ~34, '%3C%2Fp%3E'
         52        ECHO                                                     ~33
   44    53    >   IS_SMALLER_OR_EQUAL                                      !1, !0
         54      > JMPZ                                                     ~36, ->60
   45    55    >   ROPE_INIT                                     3  ~38     '%3Cp%3ETest+5%3A+%24a+is+greater+or+equal+to+%2F'
         56        ROPE_ADD                                      1  ~38     ~38, !1
         57        ROPE_END                                      2  ~37     ~38, '%3C%2Fp%3E'
         58        ECHO                                                     ~37
         59      > JMP                                                      ->64
   47    60    >   ROPE_INIT                                     3  ~41     '%3Cp%3ETest+5%3A+%24a+is+not+greater+or+to+equal+%2F'
         61        ROPE_ADD                                      1  ~41     ~41, !1
         62        ROPE_END                                      2  ~40     ~41, '%3C%2Fp%3E'
         63        ECHO                                                     ~40
   51    64    >   IS_SMALLER_OR_EQUAL                                      !0, !1
         65      > JMPZ                                                     ~43, ->71
   52    66    >   ROPE_INIT                                     3  ~45     '%3Cp%3ETest+6%3A+%24a+is+less+than+or+equal+to+%2F'
         67        ROPE_ADD                                      1  ~45     ~45, !1
         68        ROPE_END                                      2  ~44     ~45, '%3C%2Fp%3E'
         69        ECHO                                                     ~44
         70      > JMP                                                      ->75
   54    71    >   ROPE_INIT                                     3  ~48     '%3Cp%3ETest+6%3A+%24a+is+not+less+than+or+to+equal+%2F'
         72        ROPE_ADD                                      1  ~48     ~48, !1
         73        ROPE_END                                      2  ~47     ~48, '%3C%2Fp%3E'
         74        ECHO                                                     ~47
   58    75    >   ECHO                                                     '%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   60    76      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.71 ms | 1403 KiB | 13 Q