3v4l.org

run code in 300+ PHP versions simultaneously
<?php $recommendations = array(); ?><html> <body> <h1>Flavor Recommendations</h1> <?php if(!empty($recommendations)) { ?> <ul> <?php foreach($recommendations as $flavor) { ?> <li><?php echo $flavor; ?></li> <?php } ?> </ul> /* I added a paragraph */ <?php } else { ?> <p> <?php echo 'There are no flavor recommendations for you.'; ?> </p> <?php } ?> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 15
Branch analysis from position: 5
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BgNhv
function name:  (null)
number of ops:  20
compiled vars:  !0 = $recommendations, !1 = $flavor
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ECHO                                                     '%3Chtml%3E%0A%3Cbody%3E%0A%0A++++%3Ch1%3EFlavor+Recommendations%3C%2Fh1%3E%0A'
    9     2        ISSET_ISEMPTY_CV                                 ~3      !0
          3        BOOL_NOT                                         ~4      ~3
          4      > JMPZ                                                     ~4, ->15
   10     5    >   ECHO                                                     '++++%3Cul%3E%0A++++++++'
   11     6      > FE_RESET_R                                       $5      !0, ->12
          7    > > FE_FETCH_R                                               $5, !1, ->12
   12     8    >   ECHO                                                     '++++++++++++%3Cli%3E'
          9        ECHO                                                     !1
         10        ECHO                                                     '%3C%2Fli%3E%0A++++++++'
   11    11      > JMP                                                      ->7
         12    >   FE_FREE                                                  $5
   14    13        ECHO                                                     '++++%3C%2Ful%3E%0A%2F%2A+I+added+a+paragraph+%2A%2F+%0A+++'
         14      > JMP                                                      ->18
   17    15    >   ECHO                                                     '+++++++%3Cp%3E+'
         16        ECHO                                                     'There+are+no+flavor+recommendations+for+you.'
         17        ECHO                                                     '+%3C%2Fp%3E%0A++'
   19    18    >   ECHO                                                     '%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   20    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.73 ms | 1398 KiB | 13 Q