3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stars=3.49; $average_stars = round($stars*2)/2; for($i=0; $i<floor($average_stars); $i++) { ?> <img src="<?php echo "full"; ?>" /> <?php } if(floor($average_stars)!=$average_stars) {?> <img src="<?php echo "half"; ?>" /> <?php } for($i=5; $i>ceil($average_stars); $i--) { ?> <img src="<?php echo "grey"; ?>" /> <?php }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 9
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 26
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 28
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 28
Branch analysis from position: 37
Branch analysis from position: 28
Branch analysis from position: 26
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 9
Branch analysis from position: 18
Branch analysis from position: 9
filename:       /in/8X7SH
function name:  (null)
number of ops:  38
compiled vars:  !0 = $stars, !1 = $average_stars, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 3.49
    3     1        INIT_FCALL                                               'round'
          2        MUL                                              ~4      !0, 2
          3        SEND_VAL                                                 ~4
          4        DO_ICALL                                         $5      
          5        DIV                                              ~6      $5, 2
          6        ASSIGN                                                   !1, ~6
    4     7        ASSIGN                                                   !2, 0
          8      > JMP                                                      ->13
    7     9    >   ECHO                                                     '++++%3Cimg+src%3D%22'
         10        ECHO                                                     'full'
         11        ECHO                                                     '%22+%2F%3E%0A++++'
    4    12        PRE_INC                                                  !2
         13    >   INIT_FCALL                                               'floor'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $10     
         16        IS_SMALLER                                               !2, $10
         17      > JMPNZ                                                    ~11, ->9
   10    18    >   INIT_FCALL                                               'floor'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                         $12     
         21        IS_NOT_EQUAL                                             !1, $12
         22      > JMPZ                                                     ~13, ->26
   12    23    >   ECHO                                                     '+++%3Cimg+src%3D%22'
         24        ECHO                                                     'half'
         25        ECHO                                                     '%22+%2F%3E%0A'
   16    26    >   ASSIGN                                                   !2, 5
         27      > JMP                                                      ->32
   19    28    >   ECHO                                                     '++++%3Cimg+src%3D%22'
         29        ECHO                                                     'grey'
         30        ECHO                                                     '%22+%2F%3E%0A++++'
   16    31        PRE_DEC                                                  !2
         32    >   INIT_FCALL                                               'ceil'
         33        SEND_VAR                                                 !1
         34        DO_ICALL                                         $16     
         35        IS_SMALLER                                               $16, !2
         36      > JMPNZ                                                    ~17, ->28
   21    37    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.26 ms | 1400 KiB | 19 Q