3v4l.org

run code in 300+ PHP versions simultaneously
<?php $white = hexdec('#ffffff'); //Loops for a bunch of colours for( $i = 0 ; $i <= $white ; $i=$i+5000 ) { //set default css background-color property $backgroundValue = dechex( $i ); //if there are less of 7 characters (ex. #fa444, or #32F, ...) if( $numLen = strlen( dechex( $i )) < 7 ) { //insert (7 - numbers of characters) number of zeros after # for ( $j = 0 ; $j < 7 - $numLen ; $j++ ) $backgroundValue = strtr( $backgroundValue, '#', '#0'); } //echo each div with each background-color property. echo '<div class="colour" style="width: 10%; float: left; background: #'.$backgroundValue.';">'.dechex($i).'</div>'; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 6
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 29
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 19
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 6
Branch analysis from position: 41
Branch analysis from position: 6
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 19
Branch analysis from position: 29
Branch analysis from position: 19
Branch analysis from position: 29
filename:       /in/eekOg
function name:  (null)
number of ops:  42
compiled vars:  !0 = $white, !1 = $i, !2 = $backgroundValue, !3 = $numLen, !4 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'hexdec'
          1        SEND_VAL                                                 '%23ffffff'
          2        DO_ICALL                                         $5      
          3        ASSIGN                                                   !0, $5
    5     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->39
    8     6    >   INIT_FCALL                                               'dechex'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !2, $8
   11    10        INIT_FCALL                                               'dechex'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $10     
         13        STRLEN                                           ~11     $10
         14        IS_SMALLER                                       ~12     ~11, 7
         15        ASSIGN                                           ~13     !3, ~12
         16      > JMPZ                                                     ~13, ->29
   14    17    >   ASSIGN                                                   !4, 0
         18      > JMP                                                      ->26
   15    19    >   INIT_FCALL                                               'strtr'
         20        SEND_VAR                                                 !2
         21        SEND_VAL                                                 '%23'
         22        SEND_VAL                                                 '%230'
         23        DO_ICALL                                         $15     
         24        ASSIGN                                                   !2, $15
   14    25        PRE_INC                                                  !4
         26    >   SUB                                              ~18     7, !3
         27        IS_SMALLER                                               !4, ~18
         28      > JMPNZ                                                    ~19, ->19
   18    29    >   CONCAT                                           ~20     '%3Cdiv+class%3D%22colour%22+style%3D%22width%3A+10%25%3B+float%3A+left%3B+background%3A+%23', !2
         30        CONCAT                                           ~21     ~20, '%3B%22%3E'
         31        INIT_FCALL                                               'dechex'
         32        SEND_VAR                                                 !1
         33        DO_ICALL                                         $22     
         34        CONCAT                                           ~23     ~21, $22
         35        CONCAT                                           ~24     ~23, '%3C%2Fdiv%3E'
         36        ECHO                                                     ~24
    5    37        ADD                                              ~25     !1, 5000
         38        ASSIGN                                                   !1, ~25
         39    >   IS_SMALLER_OR_EQUAL                                      !1, !0
         40      > JMPNZ                                                    ~27, ->6
   19    41    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.67 ms | 1400 KiB | 19 Q