3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stars = array('Tom' => 0.9, 'Dan' => 0.8, 'Max' => 0.1); arsort($stars); foreach ($stars as $name => $stars) { ?> <div style="font-size: 26pt;"><span style="width: 150px;"><?php echo htmlentities($name); ?></span> <?php echo str_repeat('<img style="height:30px;" src="http://ratherthecouch.files.wordpress.com/2013/02/gold-star.jpg?w=750" />', floor($stars / 5)); echo str_repeat('<img style="height:30px;" src="https://pbs.twimg.com/profile_images/446819911349043200/Q4Xvo_p5.jpeg" />', floor($stars % 5)); echo str_repeat('<img style="height:30px;" src="http://www.stalkingtools.com/img/logo.png" />', ( fmod($stars, 1) * 10)); ?> </div> <?php }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 43
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 43
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 43
filename:       /in/kD1pf
function name:  (null)
number of ops:  45
compiled vars:  !0 = $stars, !1 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'arsort'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
    6     4      > FE_RESET_R                                       $4      !0, ->43
          5    > > FE_FETCH_R                                       ~5      $4, !0, ->43
          6    >   ASSIGN                                                   !1, ~5
    8     7        ECHO                                                     '%3Cdiv+style%3D%22font-size%3A+26pt%3B%22%3E%3Cspan+style%3D%22width%3A+150px%3B%22%3E'
          8        INIT_FCALL                                               'htmlentities'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $7      
         11        ECHO                                                     $7
         12        ECHO                                                     '%3C%2Fspan%3E%0A'
   10    13        INIT_FCALL                                               'str_repeat'
         14        SEND_VAL                                                 '%3Cimg+style%3D%22height%3A30px%3B%22+src%3D%22http%3A%2F%2Fratherthecouch.files.wordpress.com%2F2013%2F02%2Fgold-star.jpg%3Fw%3D750%22+%2F%3E'
         15        INIT_FCALL                                               'floor'
         16        DIV                                              ~8      !0, 5
         17        SEND_VAL                                                 ~8
         18        DO_ICALL                                         $9      
         19        SEND_VAR                                                 $9
         20        DO_ICALL                                         $10     
         21        ECHO                                                     $10
   11    22        INIT_FCALL                                               'str_repeat'
         23        SEND_VAL                                                 '%3Cimg+style%3D%22height%3A30px%3B%22+src%3D%22https%3A%2F%2Fpbs.twimg.com%2Fprofile_images%2F446819911349043200%2FQ4Xvo_p5.jpeg%22+%2F%3E'
         24        INIT_FCALL                                               'floor'
         25        MOD                                              ~11     !0, 5
         26        SEND_VAL                                                 ~11
         27        DO_ICALL                                         $12     
         28        SEND_VAR                                                 $12
         29        DO_ICALL                                         $13     
         30        ECHO                                                     $13
   12    31        INIT_FCALL                                               'str_repeat'
         32        SEND_VAL                                                 '%3Cimg+style%3D%22height%3A30px%3B%22+src%3D%22http%3A%2F%2Fwww.stalkingtools.com%2Fimg%2Flogo.png%22+%2F%3E'
         33        INIT_FCALL                                               'fmod'
         34        SEND_VAR                                                 !0
         35        SEND_VAL                                                 1
         36        DO_ICALL                                         $14     
         37        MUL                                              ~15     $14, 10
         38        SEND_VAL                                                 ~15
         39        DO_ICALL                                         $16     
         40        ECHO                                                     $16
   14    41        ECHO                                                     '%3C%2Fdiv%3E%0A'
    6    42      > JMP                                                      ->5
         43    >   FE_FREE                                                  $4
   16    44      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.92 ms | 1400 KiB | 23 Q