3v4l.org

run code in 300+ PHP versions simultaneously
<?php $starNumber = 3.5; $output =""; for($x=1;$x<=$starNumber;$x++) { $output .= '<i class="fa fa-star" aria-hidden="true"></i>' . "\n"; } if (strpos($starNumber,'.')) { $output .= '<i class="fa fa-star-half-o" aria-hidden="true"></i>' . "\n"; $x++; } while ($x<=5) { $output .= '<i class="fa fa-star-o" aria-hidden="true"></i>' . "\n"; $x++; } Echo $output;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 4
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 16
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 16
Branch analysis from position: 20
Branch analysis from position: 16
Branch analysis from position: 15
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 4
Branch analysis from position: 8
Branch analysis from position: 4
filename:       /in/DCQoc
function name:  (null)
number of ops:  22
compiled vars:  !0 = $starNumber, !1 = $output, !2 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 3.5
    5     1        ASSIGN                                                   !1, ''
    6     2        ASSIGN                                                   !2, 1
          3      > JMP                                                      ->6
    7     4    >   ASSIGN_OP                                     8          !1, '%3Ci+class%3D%22fa+fa-star%22+aria-hidden%3D%22true%22%3E%3C%2Fi%3E%0A'
    6     5        PRE_INC                                                  !2
          6    >   IS_SMALLER_OR_EQUAL                                      !2, !0
          7      > JMPNZ                                                    ~8, ->4
    9     8    >   INIT_FCALL                                               'strpos'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 '.'
         11        DO_ICALL                                         $9      
         12      > JMPZ                                                     $9, ->15
   10    13    >   ASSIGN_OP                                     8          !1, '%3Ci+class%3D%22fa+fa-star-half-o%22+aria-hidden%3D%22true%22%3E%3C%2Fi%3E%0A'
   11    14        PRE_INC                                                  !2
   13    15    > > JMP                                                      ->18
   14    16    >   ASSIGN_OP                                     8          !1, '%3Ci+class%3D%22fa+fa-star-o%22+aria-hidden%3D%22true%22%3E%3C%2Fi%3E%0A'
   15    17        PRE_INC                                                  !2
   13    18    >   IS_SMALLER_OR_EQUAL                                      !2, 5
         19      > JMPNZ                                                    ~14, ->16
   18    20    >   ECHO                                                     !1
   19    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.51 ms | 1006 KiB | 14 Q